Browse Source

Fallen warcry dungeon inbound fix for vanilla bug

pull/5058/head
k-bar 4 years ago committed by Anders Jenbo
parent
commit
3b4efd51e9
  1. 3
      Source/monster.cpp

3
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;

Loading…
Cancel
Save