aboutsummaryrefslogtreecommitdiff
path: root/src/game/WaypointMovementGenerator.h
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-06 19:54:01 -0600
committermegamage <none@none>2008-12-06 19:54:01 -0600
commit2823ce5858ce088dd7f8aa49217f5d1b4eb80d96 (patch)
tree3395ffa0c86b19cf81690bafe72c52c0a4e4bec5 /src/game/WaypointMovementGenerator.h
parentfab500b8f0c1806e01f7c1e7ab4e0c1bda11f607 (diff)
*Fix WaypointMovementGenerator. By trullyone.
--HG-- branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.h')
-rw-r--r--src/game/WaypointMovementGenerator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/WaypointMovementGenerator.h b/src/game/WaypointMovementGenerator.h
index 9f902a17fea..86e1b0beea3 100644
--- a/src/game/WaypointMovementGenerator.h
+++ b/src/game/WaypointMovementGenerator.h
@@ -55,7 +55,6 @@ class TRINITY_DLL_SPEC PathMovementBase
void ReloadPath(T &);
uint32 GetCurrentNode() const { return i_currentNode; }
- virtual bool GetDestination(float& x, float& y, float& z) const { i_destinationHolder.GetDestination(x,y,z); return true; }
protected:
uint32 i_currentNode;
DestinationHolder< Traveller<T> > i_destinationHolder;
@@ -104,6 +103,8 @@ public PathMovementBase<Creature, WaypointPath*>
// statics
static void Initialize(void);
+
+ bool GetDestination(float& x, float& y, float& z) const { i_destinationHolder.GetDestination(x,y,z); return true; }
private:
void ClearWaypoints();
bool b_StopedByPlayer;
@@ -134,5 +135,6 @@ public PathMovementBase<Player>
inline bool HasArrived() const { return (i_currentNode >= i_path.Size()); }
void SetCurrentNodeAfterTeleport();
void SkipCurrentNode() { ++i_currentNode; }
+ bool GetDestination(float& x, float& y, float& z) const { i_destinationHolder.GetDestination(x,y,z); return true; }
};
#endif