From 3b4efd51e93205a2fb303c31f22e77d51f1a95ee Mon Sep 17 00:00:00 2001 From: k-bar <92504151+k-bar@users.noreply.github.com> Date: Fri, 24 Jun 2022 14:01:40 +0200 Subject: [PATCH] Fallen warcry dungeon inbound fix for vanilla bug --- Source/monster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 18fd4c648..0f2eb6204 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -2544,7 +2544,8 @@ void FallenAi(int i) for (int x = -rad; x <= rad; x++) { int xpos = monster.position.tile.x + x; int ypos = monster.position.tile.y + y; - if (InDungeonBounds({ x, y })) { + // BUGFIX: incorrect check of offset against limits of the dungeon (fixed) + if (InDungeonBounds({ xpos, ypos })) { int m = dMonster[xpos][ypos]; if (m <= 0) continue;