1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed pushdown (?)

This commit is contained in:
Zeno Rogue 2019-10-26 14:34:22 +02:00
parent 9cc4f627cf
commit 93f145adb0

View File

@ -2182,17 +2182,17 @@ void celldrawer::draw_monster_full() {
}
#if CAP_SHAPES
int q = ptds.size();
int q = isize(ptds);
#endif
bool m = drawMonster(V, c->type, c, moncol, cw.mirrored, asciicol);
if(m) error = true;
if(m || c->monst) onradar = false;
#if CAP_SHAPES
if(q != isize(ptds)) {
if(WDIM == 2 && GDIM == 3)
if(isize(ptds) != q) {
if(WDIM == 2 && GDIM == 3 && abs(cgi.SLEV[sl] - cgi.FLOOR) > 1e-6)
pushdown(c, q, V, cgi.SLEV[sl] - cgi.FLOOR, false, false);
else pushdown(c, q, V, -geom3::factor_to_lev(zlevel(tC0(Vboat))),
!isMultitile(c->monst), false);
if(GDIM ==2 && abs(geom3::factor_to_lev(zlevel(tC0(Vboat)))) > 1e-6)
pushdown(c, q, V, -geom3::factor_to_lev(zlevel(tC0(Vboat))), !isMultitile(c->monst), false);
}
#endif
}