Core/MotionMaster: Fix logic in MoveLand() and MoveTakeoff()

This commit is contained in:
Chaplain
2012-01-18 16:26:45 +03:00
parent 47b6862302
commit 86104943cb
+2 -2
View File
@@ -307,7 +307,7 @@ void MotionMaster::MoveLand(uint32 id, Position const& pos, float speed)
init.SetVelocity(speed); init.SetVelocity(speed);
init.SetAnimation(Movement::ToGround); init.SetAnimation(Movement::ToGround);
init.Launch(); init.Launch();
Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED); Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE);
} }
void MotionMaster::MoveTakeoff(uint32 id, Position const& pos, float speed) void MotionMaster::MoveTakeoff(uint32 id, Position const& pos, float speed)
@@ -322,7 +322,7 @@ void MotionMaster::MoveTakeoff(uint32 id, Position const& pos, float speed)
init.SetVelocity(speed); init.SetVelocity(speed);
init.SetAnimation(Movement::ToFly); init.SetAnimation(Movement::ToFly);
init.Launch(); init.Launch();
Mutate(new EffectMovementGenerator(id), MOTION_SLOT_CONTROLLED); Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE);
} }
void MotionMaster::MoveKnockbackFrom(float srcX, float srcY, float speedXY, float speedZ) void MotionMaster::MoveKnockbackFrom(float srcX, float srcY, float speedXY, float speedZ)