Skip to content

Commit

Permalink
improve: targetList / friendList (opentibiabr#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah authored Nov 16, 2023
1 parent f1bf06f commit adb72e1
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 211 deletions.
4 changes: 1 addition & 3 deletions src/creatures/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,7 @@ void Creature::goToFollowCreature() {
}
}

if (followCreature->getPlayer() && followCreature->getPlayer()->isDisconnected()) {
hasFollowPath = false;
} else if (listDir.empty()) {
if (listDir.empty()) {
hasFollowPath = getPathTo(followCreature->getPosition(), listDir, fpp);
}

Expand Down
Loading

0 comments on commit adb72e1

Please sign in to comment.