diff options
author | MeanMachine <none@none> | 2008-12-10 07:41:01 +0200 |
---|---|---|
committer | MeanMachine <none@none> | 2008-12-10 07:41:01 +0200 |
commit | 9be484f8c89d5e388fcba4b7b099131092c2ce40 (patch) | |
tree | d1a1a76e248474b7e7866d4bee4117b1de5892f2 /src/game/WaypointMovementGenerator.cpp | |
parent | c2b217a1c1d4b3153fdf796141719415a39b9df6 (diff) |
Small structural change to fix an error on some compilers.
--HG--
branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r-- | src/game/WaypointMovementGenerator.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index 84f121eb9b3..47119aa007c 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -66,6 +66,18 @@ void WaypointMovementGenerator<Creature>::MovementInform(Creature &unit) unit.AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_currentNode); } +template<class T> +bool WaypointMovementGenerator<T>::GetDestination(float &x, float &y, float &z) const +{ + if(i_destinationHolder.HasArrived()) + return false; + + i_destinationHolder.GetDestination(x, y, z); + return true; +} +template bool WaypointMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const; +template bool WaypointMovementGenerator<Player>::GetDestination(float &x, float &y, float &z) const; + template<> void WaypointMovementGenerator<Creature>::Reset(Creature &unit){} |