mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
2D3D:: fixed a crash bug when drawing Palace ceiling
This commit is contained in:
parent
a8c494a96c
commit
542639bcc8
@ -4696,7 +4696,7 @@ void draw_ceiling(cell *c, const transmatrix& V, int fd, color_t& fcol, color_t&
|
||||
}
|
||||
else {
|
||||
bool window = false;
|
||||
forCellIdEx(c2, i, c) if(c2->wall == waPalace && ispal(c->modmove(i+1)) && ispal(c->modmove(i-1))) window = true;
|
||||
forCellIdEx(c2, i, c) if(c2->wall == waPalace && ispal(c->cmodmove(i+1)) && ispal(c->cmodmove(i-1))) window = true;
|
||||
if(!window) draw_shapevec(c, V, qfi.fshape->levels[SIDE_HIGH], darkena(fcol, fd, 0xFF), PPR::WALL);
|
||||
if(window)
|
||||
forCellIdEx(c2, i, c)
|
||||
|
Loading…
Reference in New Issue
Block a user