mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +00:00
no darkening in rotated hyperboles
This commit is contained in:
parent
459619ff35
commit
fd9d6208f2
23
polygons.cpp
23
polygons.cpp
@ -1431,14 +1431,23 @@ void drawqueue() {
|
|||||||
|
|
||||||
spherespecial = sphereflipped() ? 1 : -1;
|
spherespecial = sphereflipped() ? 1 : -1;
|
||||||
current_display->set_projection(0, true);
|
current_display->set_projection(0, true);
|
||||||
|
|
||||||
reverse_side_priorities();
|
|
||||||
for(int i=ptds.size()-1; i>=0; i--)
|
|
||||||
if(!among(ptds[i]->prio, PPR::MOBILE_ARROW, PPR::OUTCIRCLE, PPR::CIRCLE))
|
|
||||||
ptds[i]->draw_back();
|
|
||||||
|
|
||||||
glflush();
|
if(pmodel == mdRotatedHyperboles) {
|
||||||
reverse_side_priorities();
|
for(auto& ptd: ptds)
|
||||||
|
if(!among(ptd->prio, PPR::MOBILE_ARROW, PPR::OUTCIRCLE, PPR::CIRCLE))
|
||||||
|
ptd->draw();
|
||||||
|
glflush();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
reverse_side_priorities();
|
||||||
|
for(int i=ptds.size()-1; i>=0; i--)
|
||||||
|
if(!among(ptds[i]->prio, PPR::MOBILE_ARROW, PPR::OUTCIRCLE, PPR::CIRCLE))
|
||||||
|
ptds[i]->draw_back();
|
||||||
|
|
||||||
|
glflush();
|
||||||
|
reverse_side_priorities();
|
||||||
|
}
|
||||||
|
|
||||||
spherespecial *= -1;
|
spherespecial *= -1;
|
||||||
spherephase = 1;
|
spherephase = 1;
|
||||||
current_display->set_projection(0, true);
|
current_display->set_projection(0, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user