Merge pull request #153 from hermensbas/fix/reverse_movement_point_movement
[BUG FIX] Reverse walking
This commit is contained in:
@@ -47,6 +47,11 @@ void PointMovementGenerator<T>::DoInitialize(T* unit)
|
|||||||
|
|
||||||
i_recalculateSpeed = false;
|
i_recalculateSpeed = false;
|
||||||
Movement::MoveSplineInit init(unit);
|
Movement::MoveSplineInit init(unit);
|
||||||
|
|
||||||
|
// mod-playerbots
|
||||||
|
if (_reverseOrientation)
|
||||||
|
init.SetOrientationInversed();
|
||||||
|
|
||||||
if (m_precomputedPath.size() > 2) // pussywizard: for charge
|
if (m_precomputedPath.size() > 2) // pussywizard: for charge
|
||||||
init.MovebyPath(m_precomputedPath);
|
init.MovebyPath(m_precomputedPath);
|
||||||
else if (_generatePath)
|
else if (_generatePath)
|
||||||
|
|||||||
Reference in New Issue
Block a user