From 0dfc2093d54c8b8424a2d3a11e3c385bf35a4a9f Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 23 Feb 2010 04:07:01 +0300 Subject: [PATCH] [9437] Move waypoint's GetResetPosition function body to .cpp. --- src/game/WaypointMovementGenerator.cpp | 5 +++++ src/game/WaypointMovementGenerator.h | 5 +---- src/shared/revision_nr.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index a27172994..4abfe45cd 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -271,6 +271,11 @@ void WaypointMovementGenerator::MovementInform(Creature &unit) unit.AI()->MovementInform(WAYPOINT_MOTION_TYPE, i_currentNode); } +bool WaypointMovementGenerator::GetResetPosition( Creature&, float& x, float& y, float& z ) +{ + return PathMovementBase::GetPosition(x,y,z); +} + //----------------------------------------------------// void FlightPathMovementGenerator::LoadPath(Player &) { diff --git a/src/game/WaypointMovementGenerator.h b/src/game/WaypointMovementGenerator.h index 0114b1a53..8aa4ae0e8 100644 --- a/src/game/WaypointMovementGenerator.h +++ b/src/game/WaypointMovementGenerator.h @@ -98,10 +98,7 @@ public PathMovementBase // allow use for overwrite empty implementation bool GetDestination(float& x, float& y, float& z) const { return PathMovementBase::GetDestination(x,y,z); } - bool GetResetPosition(Creature&, float& x, float& y, float& z) - { - return PathMovementBase::GetPosition(x,y,z); - } + bool GetResetPosition(Creature&, float& x, float& y, float& z); private: void ClearWaypoints(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 23870462c..f3a6fb686 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9436" + #define REVISION_NR "9437" #endif // __REVISION_NR_H__