mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
Move update path to movement manager so all movement will use paths
This commit is contained in:
+1
-15
@@ -2687,14 +2687,7 @@ void Bot::AI_Process() {
|
||||
Log(Logs::Detail, Logs::AI, "Pursuing %s while engaged.", GetTarget()->GetCleanName());
|
||||
|
||||
Goal = GetTarget()->GetPosition();
|
||||
|
||||
if (RuleB(Bots, UsePathing) && zone->pathing) {
|
||||
bool WaypointChanged, NodeReached;
|
||||
|
||||
Goal = UpdatePath(Goal.x, Goal.y, Goal.z,
|
||||
GetBotRunspeed(), WaypointChanged, NodeReached);
|
||||
}
|
||||
|
||||
|
||||
CalculateNewPosition(Goal.x, Goal.y, Goal.z, GetBotRunspeed());
|
||||
return;
|
||||
}
|
||||
@@ -2813,13 +2806,6 @@ void Bot::AI_Process() {
|
||||
|
||||
Goal = follow_mob->GetPosition();
|
||||
|
||||
if (RuleB(Bots, UsePathing) && zone->pathing) {
|
||||
bool WaypointChanged, NodeReached;
|
||||
|
||||
Goal = UpdatePath(Goal.x, Goal.y, Goal.z,
|
||||
speed, WaypointChanged, NodeReached);
|
||||
}
|
||||
|
||||
CalculateNewPosition(Goal.x, Goal.y, Goal.z, speed);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user