* Fix bad check in Entity::moveRelative

This commit is contained in:
iProgramInCpp
2023-08-01 09:43:50 +03:00
parent f6b1856ea9
commit adf3dfa54e

View File

@@ -488,7 +488,7 @@ void Entity::moveRelative(float x, float z, float y)
{
float d = sqrtf(x * x + z * z);
if (d < 0.01f) return;
if (d > 1.0f)
if (d < 1.0f)
d = 1.0f;
y /= d;