Fix blastable wall test

WALL_BLASTABLE is a property of the wall flags, not the wall state.
This commit is contained in:
Kp 2021-11-01 03:37:19 +00:00
parent a6f2db2502
commit 9823c2e33c

View file

@ -1888,7 +1888,7 @@ int ai_door_is_openable(
// -- if (Buddy_got_stuck) {
if (ailp_mode == ai_mode::AIM_GOTO_PLAYER) {
if (wt == WALL_BLASTABLE && wall.state != WALL_BLASTED)
if (wt == WALL_BLASTABLE && !(wall.flags & WALL_BLASTED))
return 0;
if (wt == WALL_CLOSED)
return 0;