Skip to content

Commit

Permalink
fix monsters not following target (#4866)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Jałocha <[email protected]>
  • Loading branch information
ArturKnopik and nekiro authored Dec 29, 2024
1 parent 8d79ba4 commit c85df89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ void Monster::goToFollowCreature()

if (isFleeing()) {
getDistanceStep(followCreature->getPosition(), dir, true);
} else if (fpp.maxTargetDist > 1) {
} else { // maxTargetDist > 1
if (!getDistanceStep(followCreature->getPosition(), dir)) {
// if we can't get anything then let the A* calculate
updateFollowCreaturePath(fpp);
Expand Down

0 comments on commit c85df89

Please sign in to comment.