Skip to content

Commit

Permalink
* Fix doWalkBack
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Jan 12, 2025
1 parent a9571a4 commit 3dfd2dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/creatures/monsters/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,11 @@ void Monster::doRandomStep(Direction &nextDirection, bool &result) {
}

void Monster::doWalkBack(uint32_t &flags, Direction &nextDirection, bool &result) {
if (totalPlayersOnScreen > 0) {
isWalkingBack = false;
return;
}

result = Creature::getNextStep(nextDirection, flags);
if (result) {
flags |= FLAG_PATHFINDING;
Expand Down

0 comments on commit 3dfd2dc

Please sign in to comment.