From 0029017e17b9a2fded77e1680cef9dbc3aebacff Mon Sep 17 00:00:00 2001 From: "shadowu@mail.bg" Date: Thu, 11 Dec 2008 02:47:15 +0200 Subject: WaypointMovementGenerator - linux compile fix --HG-- branch : trunk --- src/game/WaypointMovementGenerator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/game') 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::MovementInform(Creature &unit) unit.AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_currentNode); } -template -bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const +template<> +bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const { if(i_destinationHolder.HasArrived()) return false; @@ -75,8 +75,9 @@ bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) i_destinationHolder.GetDestination(x, y, z); return true; } -template bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const; -template bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const; + +template<> +bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const {} template<> void WaypointMovementGenerator::Reset(Creature &unit){} -- cgit v1.2.3