1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 09:47:56 +00:00

added some missing CAP_* guards

This commit is contained in:
Zeno Rogue
2021-06-09 04:33:55 +02:00
parent 7777c7b415
commit b71e436cb6
11 changed files with 29 additions and 1 deletions

View File

@@ -381,6 +381,7 @@ EX void pushThumper(const movei& mi) {
cto->wall = waCrateOnTarget;
th->wall = waCrateTarget;
}
#if CAP_COMPLEX2
else if(isDie(w)) {
th->wall = waNone;
cto->wall = w;
@@ -405,6 +406,7 @@ EX void pushThumper(const movei& mi) {
else
animateMovement(mi, LAYER_BOAT);
}
#endif
else
cto->wall = w;
if(explode) cto->wall = waFireTrap, cto->wparam = explode;
@@ -415,8 +417,10 @@ EX void pushThumper(const movei& mi) {
EX bool canPushThumperOn(movei mi, cell *player) {
cell *thumper = mi.s;
cell *tgt = mi.t;
#if CAP_COMPLEX2
if(dice::on(thumper) && !dice::can_roll(mi))
return false;
#endif
if(tgt->wall == waBoat || tgt->wall == waStrandedBoat) return false;
if(isReptile(tgt->wall)) return false;
if(isWatery(tgt) && !tgt->monst)