mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Mmaps: Use mmaps if enabled when re-generating point-movement path after speed changes. (often used by pets)
This commit is contained in:
@@ -59,7 +59,7 @@ bool PointMovementGenerator<T>::Update(T* unit, const uint32& /*diff*/)
|
||||
{
|
||||
i_recalculateSpeed = false;
|
||||
Movement::MoveSplineInit init(unit);
|
||||
init.MoveTo(i_x, i_y, i_z);
|
||||
init.MoveTo(i_x, i_y, i_z, m_generatePath);
|
||||
if (speed > 0.0f) // Default value for point motion type is 0.0, if 0.0 spline will use GetSpeed on unit
|
||||
init.SetVelocity(speed);
|
||||
init.Launch();
|
||||
|
||||
Reference in New Issue
Block a user