Core/Movement: Restore overriding walk/run mode on individual waypoint level for legacy escort scripts

This commit is contained in:
Shauren
2026-01-01 00:13:40 +01:00
parent 5c0de6977c
commit ef97fb4ea7
4 changed files with 14 additions and 15 deletions

View File

@@ -257,8 +257,7 @@ void EscortAI::AddWaypoint(uint32 id, float x, float y, float z, float orientati
Trinity::NormalizeMapCoord(x);
Trinity::NormalizeMapCoord(y);
WaypointNode& waypoint = _path.Nodes.emplace_back(id, x, y, z, orientation, waitTime);
waypoint.MoveType = run ? WaypointMoveType::Run : WaypointMoveType::Walk;
_path.Nodes.emplace_back(id, x, y, z, orientation, waitTime, run ? WaypointMoveType::Run : WaypointMoveType::Walk);
}
void EscortAI::ResetPath()