Skip to content

Commit c85df89

Browse files
ArturKnopiknekiro
andauthored
fix monsters not following target (#4866)
Co-authored-by: Marcin Jałocha <[email protected]>
1 parent 8d79ba4 commit c85df89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monster.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ void Monster::goToFollowCreature()
589589

590590
if (isFleeing()) {
591591
getDistanceStep(followCreature->getPosition(), dir, true);
592-
} else if (fpp.maxTargetDist > 1) {
592+
} else { // maxTargetDist > 1
593593
if (!getDistanceStep(followCreature->getPosition(), dir)) {
594594
// if we can't get anything then let the A* calculate
595595
updateFollowCreaturePath(fpp);

0 commit comments

Comments
 (0)