aboutsummaryrefslogtreecommitdiff
path: root/src/game/WaypointMovementGenerator.cpp
diff options
context:
space:
mode:
authorshadowu@mail.bg <none@none>2008-12-11 02:47:15 +0200
committershadowu@mail.bg <none@none>2008-12-11 02:47:15 +0200
commit0029017e17b9a2fded77e1680cef9dbc3aebacff (patch)
tree795ab225b0d12a1b29ad5ac1572f903b0cba81c4 /src/game/WaypointMovementGenerator.cpp
parent22c7db127886c9c24c7eef0ce1640c323b01ef35 (diff)
WaypointMovementGenerator - linux compile fix
--HG-- branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r--src/game/WaypointMovementGenerator.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp
index 47119aa007c..576c1f0d26e 100644
--- a/src/game/WaypointMovementGenerator.cpp
+++ b/src/game/WaypointMovementGenerator.cpp
@@ -66,8 +66,8 @@ 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
+template<>
+bool WaypointMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const
{
if(i_destinationHolder.HasArrived())
return false;
@@ -75,8 +75,9 @@ bool WaypointMovementGenerator<T>::GetDestination(float &x, float &y, float &z)
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<>
+bool WaypointMovementGenerator<Player>::GetDestination(float &x, float &y, float &z) const {}
template<>
void WaypointMovementGenerator<Creature>::Reset(Creature &unit){}