Core/Movement: Corrected all speed checks after 23b6991273bac4ee9d7cf1b4ac3b9a92e0a7300e

Ref issue #19210
This commit is contained in:
ariel- authored and Aokromes committed 2017-03-03 01:30:15 +01:00
1 parent 2acac2c9f7
commit 3ceeffde86
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -422,7 +422,7 @@ void MotionMaster::MoveKnockbackFrom(float srcX, float srcY, float speedXY, floa
if (_owner->GetTypeId() == TYPEID_PLAYER)
return;
if (speedXY <= 0.1f)
if (speedXY < 0.01f)
return;
float x, y, z;
@@ -458,7 +458,7 @@ void MotionMaster::MoveJumpTo(float angle, float speedXY, float speedZ)
void MotionMaster::MoveJump(float x, float y, float z, float o, float speedXY, float speedZ, uint32 id, bool hasOrientation /* = false*/)
{
TC_LOG_DEBUG("misc", "Unit (GUID: %u) jumps to point (X: %f Y: %f Z: %f).", _owner->GetGUID().GetCounter(), x, y, z);
if (speedXY <= 0.1f)
if (speedXY < 0.01f)
return;
float moveTimeHalf = speedZ / Movement::gravity;