aboutsummaryrefslogtreecommitdiff
path: root/src/game/WaypointMovementGenerator.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-28 10:52:24 -0600
committermegamage <none@none>2008-12-28 10:52:24 -0600
commit3bbf8d6be8cd67d99fc8c1df3a971fe4e7e680ef (patch)
tree0264a08b586df36f290a6b1b6a839dcf9b829c75 /src/game/WaypointMovementGenerator.cpp
parentac9cced914fb4c9db0b2b64f7fd9f9ab8c7802ee (diff)
parent9fa37dc69344a28a585bc2dee6713d7ebaa03d28 (diff)
HG 698.
--HG-- branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r--src/game/WaypointMovementGenerator.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp
index 8786d25549e..589afa088c3 100644
--- a/src/game/WaypointMovementGenerator.cpp
+++ b/src/game/WaypointMovementGenerator.cpp
@@ -94,10 +94,14 @@ template<>
void
WaypointMovementGenerator<Creature>::Initialize(Creature &u)
{
- u.StopMoving();
- if(!path_id)
- path_id = u.GetWaypointPath();
- waypoints = WaypointMgr.GetPath(path_id);
+ u.StopMoving();
+ i_currentNode = -1; // uint32, become 0 in the first update
+ i_nextMoveTime.Reset(0);
+ StopedByPlayer = false;
+ if(!path_id)
+ path_id = u.GetWaypointPath();
+ /*i_currentNode = 0;
+ waypoints = WaypointMgr.GetPath(path_id);
if(waypoints && waypoints->size())
{
Traveller<Creature> traveller(u);
@@ -105,7 +109,7 @@ WaypointMovementGenerator<Creature>::Initialize(Creature &u)
InitTraveller(u,node);
i_destinationHolder.SetDestination(traveller, node.x, node.y, node.z);
i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime());
- }
+ }*/
}
template<>