mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
fix(Core/Movement): Take TravelPath/WorldPosition by value in DispatchMovement
This commit is contained in:
parent
2913db8964
commit
3f8aa0b6b3
@ -3009,8 +3009,8 @@ bool MovementAction::MoveTo2(WorldPosition endPos,
|
|||||||
return dispatched;
|
return dispatched;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MovementAction::DispatchMovement(TravelPath const& path,
|
bool MovementAction::DispatchMovement(TravelPath path,
|
||||||
WorldPosition const& dest,
|
WorldPosition dest,
|
||||||
char const* label,
|
char const* label,
|
||||||
MovementPriority priority,
|
MovementPriority priority,
|
||||||
bool lessDelay)
|
bool lessDelay)
|
||||||
|
|||||||
@ -91,8 +91,8 @@ protected:
|
|||||||
// re-evaluation for the full move duration. Until combat dispatch is
|
// re-evaluation for the full move duration. Until combat dispatch is
|
||||||
// restructured to bypass MoveTo2, the WaitForReach is deliberately
|
// restructured to bypass MoveTo2, the WaitForReach is deliberately
|
||||||
// omitted.
|
// omitted.
|
||||||
bool DispatchMovement(TravelPath const& path,
|
bool DispatchMovement(TravelPath path,
|
||||||
WorldPosition const& dest,
|
WorldPosition dest,
|
||||||
char const* label,
|
char const* label,
|
||||||
MovementPriority priority = MovementPriority::MOVEMENT_NORMAL,
|
MovementPriority priority = MovementPriority::MOVEMENT_NORMAL,
|
||||||
bool lessDelay = false);
|
bool lessDelay = false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user