mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-04 14:09:47 +03:00
* Fix bad check in Entity::moveRelative
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user