Skip to content

Commit

Permalink
Travel: Bots now calculate a destinations distance from their own pos…
Browse files Browse the repository at this point in the history
…ition instead of 0
  • Loading branch information
mostlikely4r committed Jan 14, 2025
1 parent fcb5090 commit 8009165
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playerbot/TravelMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ PlayerTravelInfo::PlayerTravelInfo(Player* player)
PlayerbotAI* ai = player->GetPlayerbotAI();
AiObjectContext* context = ai->GetAiObjectContext();

position = player;

team = player->GetTeam();
level = player->GetLevel();
currentSkill[SKILL_MINING] = player->GetSkillValue(SKILL_MINING);
Expand Down

0 comments on commit 8009165

Please sign in to comment.