1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 21:23:18 +00:00

hall ceiling fixup: disable in other models

This commit is contained in:
Zeno Rogue 2019-05-20 15:31:34 +02:00
parent f08c33a8e2
commit fbbe37a4c4

View File

@ -5074,7 +5074,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
if(!wmblack) for(int d=0; d<c->type; d++) {
inmirrorcount+=d;
queuepolyat(V2 * spin(d*M_PI/S3), shHalfFloor[2], darkena(fcol, fd, 0xFF), PPR::FLOORa);
if(GDIM == 3 && camera_level > geom3::WALL)
if(GDIM == 3 && camera_level > geom3::WALL && pmodel == mdPerspective)
queuepolyat(V2 * spin(d*M_PI/S3), shHalfFloor[5], darkena(fcol, fd, 0xFF), PPR::FLOORa);
inmirrorcount-=d;
}
@ -5096,11 +5096,11 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
if(!wmblack) {
inmirrorcount++;
queuepolyat(mirrorif(V2, !onleft), shHalfFloor[ct6], darkena(fcol, fd, 0xFF), PPR::FLOORa);
if(GDIM == 3 && camera_level > geom3::WALL)
if(GDIM == 3 && camera_level > geom3::WALL && pmodel == mdPerspective)
queuepolyat(mirrorif(V2, !onleft), shHalfFloor[ct6+3], darkena(fcol, fd, 0xFF), PPR::FLOORa);
inmirrorcount--;
queuepolyat(mirrorif(V2, onleft), shHalfFloor[ct6], darkena(fcol, fd, 0xFF), PPR::FLOORa);
if(GDIM == 3 && camera_level > geom3::WALL)
if(GDIM == 3 && camera_level > geom3::WALL && pmodel == mdPerspective)
queuepolyat(mirrorif(V2, onleft), shHalfFloor[ct6+3], darkena(fcol, fd, 0xFF), PPR::FLOORa);
}