diff options
| author | Venugh <venugh@gmx.net> | 2012-04-09 18:36:45 +0200 |
|---|---|---|
| committer | Venugh <venugh@gmx.net> | 2012-04-09 18:36:45 +0200 |
| commit | abc33c7b5d830c96b17ff2a0473702f8a5b31b87 (patch) | |
| tree | 8078f8260412bce7c1382bbbeb367d0dd3f6f788 /src/server/game/Movement/MotionMaster.h | |
| parent | 8368112f453cc20672943dac533da1ee8ff933a3 (diff) | |
Core/Movement: Correct MotionMaster and fix a crash.
Diffstat (limited to 'src/server/game/Movement/MotionMaster.h')
| -rwxr-xr-x | src/server/game/Movement/MotionMaster.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Movement/MotionMaster.h b/src/server/game/Movement/MotionMaster.h index d6144bfcc3a..a96a3e6391a 100755 --- a/src/server/game/Movement/MotionMaster.h +++ b/src/server/game/Movement/MotionMaster.h @@ -154,13 +154,13 @@ class MotionMaster //: private std::stack<MovementGenerator *> void MoveFleeing(Unit* enemy, uint32 time = 0); void MovePoint(uint32 id, const Position &pos) { MovePoint(id, pos.m_positionX, pos.m_positionY, pos.m_positionZ); } - void MovePoint(uint32 id, float x, float y, float z); + void MovePoint(uint32 id, float x, float y, float z, bool generatePath = false); // These two movement types should only be used with creatures having landing/takeoff animations void MoveLand(uint32 id, Position const& pos, float speed); void MoveTakeoff(uint32 id, Position const& pos, float speed); - void MoveCharge(float x, float y, float z, float speed = SPEED_CHARGE, uint32 id = EVENT_CHARGE); + void MoveCharge(float x, float y, float z, float speed = SPEED_CHARGE, uint32 id = EVENT_CHARGE, bool generatePath = false); void MoveKnockbackFrom(float srcX, float srcY, float speedXY, float speedZ); void MoveJumpTo(float angle, float speedXY, float speedZ); void MoveJump(float x, float y, float z, float speedXY, float speedZ, uint32 id = 0); |
