diff options
author | megamage <none@none> | 2008-12-26 22:24:15 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-26 22:24:15 -0600 |
commit | 48d84dbad4548e1efdc9c548ccd381086ae6806e (patch) | |
tree | 78b6067360e1cf999c2d867096646cfd50f3b15d /src/game/WaypointMovementGenerator.cpp | |
parent | 4d86f8e6796548f1b76cc19c7f9e5f5c58c7e0fa (diff) |
*Fix build in Linux.
--HG--
branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r-- | src/game/WaypointMovementGenerator.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index 57dacea61e3..8786d25549e 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -33,24 +33,6 @@ WaypointMovementGenerator<T>::Initialize(T &u){} template<> void -WaypointMovementGenerator<Creature>::Initialize(Creature &u) -{ - u.StopMoving(); - if(!path_id) - path_id = u.GetWaypointPath(); - waypoints = WaypointMgr.GetPath(path_id); - if(waypoints && waypoints->size()) - { - Traveller<Creature> traveller(u); - node = *(waypoints->at(i_currentNode)); - InitTraveller(u,node); - i_destinationHolder.SetDestination(traveller, node.x, node.y, node.z); - i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime()); - } -} - -template<> -void WaypointMovementGenerator<Creature>::Finalize(Creature &u){} template<> @@ -109,6 +91,24 @@ void WaypointMovementGenerator<Creature>::InitTraveller(Creature &unit, const Wa } template<> +void +WaypointMovementGenerator<Creature>::Initialize(Creature &u) +{ + u.StopMoving(); + if(!path_id) + path_id = u.GetWaypointPath(); + waypoints = WaypointMgr.GetPath(path_id); + if(waypoints && waypoints->size()) + { + Traveller<Creature> traveller(u); + node = *(waypoints->at(i_currentNode)); + InitTraveller(u,node); + i_destinationHolder.SetDestination(traveller, node.x, node.y, node.z); + i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime()); + } +} + +template<> void WaypointMovementGenerator<Player>::InitTraveller(Player &unit, const WaypointData &node){} template<class T> |