Browse Source

fix fallen retreat direction bug

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

1
Source/monster.cpp

@ -2553,6 +2553,7 @@ void FallenAi(int i)
}
}
} else if (monster._mgoal == MGOAL_RETREAT) {
monster._mdir = static_cast<Direction>(monster._mgoalvar2);
RandomWalk(i, monster._mdir);
} else if (monster._mgoal == MGOAL_ATTACK2) {
int xpos = monster.position.tile.x - monster.enemyPosition.x;

Loading…
Cancel
Save