diff options
author | Chaplain <aionthefirst@gmail.com> | 2012-02-17 00:19:14 +0300 |
---|---|---|
committer | Chaplain <aionthefirst@gmail.com> | 2012-02-17 00:19:14 +0300 |
commit | af905468355877dd135cd6d1a793765bc2ef9eda (patch) | |
tree | 4132c26091b856b89ff1a8896b87b3b80da4a898 /src/server/game/Movement/MotionMaster.cpp | |
parent | ba4d1c36f1b947f17ffc394afac11e9fb42d0b9b (diff) |
Core/Movement: Fix MoveJump handling.
*Closes #5238 issue
*Fix possible crash in MotionMaster
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rwxr-xr-x | src/server/game/Movement/MotionMaster.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 954a193c498..27816753ca7 100755 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -365,10 +365,7 @@ void MotionMaster::MoveJump(float x, float y, float z, float speedXY, float spee init.SetParabolic(max_height,0); init.SetVelocity(speedXY); init.Launch(); - if (_owner->GetTypeId() == TYPEID_PLAYER) - Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED); - else - Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE); + Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED); } void MotionMaster::MoveFall(uint32 id/*=0*/) |