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
+2
View File
@@ -629,6 +629,7 @@ bool pcmove::actual_move() {
return after_instant(false);
}
#if CAP_COMPLEX2
if(c2->monst == moAnimatedDie) {
mip = determinePush(cwt, subdir, [] (movei mi) { return canPushThumperOn(mi, cwt.at); });
if(mip.proper()) {
@@ -640,6 +641,7 @@ bool pcmove::actual_move() {
}
}
}
#endif
if(isPushable(c2->wall) && !c2->monst && !nonAdjacentPlayer(c2, cwt.at) && fmsMove) {
mip = determinePush(cwt, subdir, [] (movei mi) { return canPushThumperOn(mi, cwt.at); });