*Reset currentNode in waypoint generator initialize. By trullyone.
--HG-- branch : trunk
This commit is contained in:
@@ -94,6 +94,8 @@ template<>
|
|||||||
void
|
void
|
||||||
WaypointMovementGenerator<Creature>::Initialize(Creature &u)
|
WaypointMovementGenerator<Creature>::Initialize(Creature &u)
|
||||||
{
|
{
|
||||||
|
i_currentNode = 0;
|
||||||
|
StopedByPlayer = false;
|
||||||
u.StopMoving();
|
u.StopMoving();
|
||||||
if(!path_id)
|
if(!path_id)
|
||||||
path_id = u.GetWaypointPath();
|
path_id = u.GetWaypointPath();
|
||||||
|
|||||||
Reference in New Issue
Block a user