From 9823c2e33ce5ae6bf20a66bc47567f083d9c690a Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 1 Nov 2021 03:37:19 +0000 Subject: [PATCH] Fix blastable wall test WALL_BLASTABLE is a property of the wall flags, not the wall state. --- similar/main/ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/similar/main/ai.cpp b/similar/main/ai.cpp index 55ac1bd55..ea6a12bf9 100644 --- a/similar/main/ai.cpp +++ b/similar/main/ai.cpp @@ -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;