1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

added flag do_not_touch_this_wall

This commit is contained in:
Zeno Rogue 2020-03-02 02:37:59 +01:00
parent 62868fd752
commit 406e289c1f
2 changed files with 5 additions and 1 deletions

View File

@ -363,5 +363,9 @@ EX bool hornStuns(cell *c) {
attackJustStuns(c, AF_NORMAL, moNone); attackJustStuns(c, AF_NORMAL, moNone);
} }
/** changing this wall for whatever reason may cause the game to crash */
EX bool do_not_touch_this_wall(cell *c) {
return among(c->wall, waMirrorWall, waBarrier, waRoundTable);
}
} }

View File

@ -935,7 +935,7 @@ bool pcmove::attack() {
} }
EX bool chaos_forbidden(cell *c) { EX bool chaos_forbidden(cell *c) {
return among(c->wall, waMirrorWall, waBarrier, waRoundTable) || isMultitile(c->monst); return do_not_touch_this_wall(c) || isMultitile(c->monst);
} }
bool pcmove::perform_actual_move() { bool pcmove::perform_actual_move() {