diff options
| author | megamage <none@none> | 2009-03-17 10:40:28 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-17 10:40:28 -0600 |
| commit | d4b52d5bbcd966da58e03db11442bee995c11e98 (patch) | |
| tree | eecfca48cc56c69f3a6b11c6f370c6019f0cbaca /src/game/PointMovementGenerator.h | |
| parent | c24e3363876a0fbec2f554d9e3b5bd2370760ff9 (diff) | |
*Move movementinform to finalize function to prevent error log spams.
--HG--
branch : trunk
Diffstat (limited to 'src/game/PointMovementGenerator.h')
| -rw-r--r-- | src/game/PointMovementGenerator.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/PointMovementGenerator.h b/src/game/PointMovementGenerator.h index 5d0bb4e80e7..5f1bf33c348 100644 --- a/src/game/PointMovementGenerator.h +++ b/src/game/PointMovementGenerator.h @@ -32,10 +32,10 @@ class TRINITY_DLL_SPEC PointMovementGenerator { public: PointMovementGenerator(uint32 _id, float _x, float _y, float _z) : id(_id), - i_x(_x), i_y(_y), i_z(_z), i_nextMoveTime(0) {} + i_x(_x), i_y(_y), i_z(_z), i_nextMoveTime(0), arrived(false) {} void Initialize(T &); - void Finalize(T &unit){unit.clearUnitState(UNIT_STAT_CHARGING);} + void Finalize(T &unit); void Reset(T &unit){unit.StopMoving();} bool Update(T &, const uint32 &diff); @@ -49,6 +49,7 @@ class TRINITY_DLL_SPEC PointMovementGenerator float i_x,i_y,i_z; uint32 id; DestinationHolder< Traveller<T> > i_destinationHolder; + bool arrived; }; #endif |
