summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-28 06:15:45 +0200
committerkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-28 06:15:45 +0200
commit4767a90b670d8f12384500dd2c0ab2f1cd99bbad (patch)
tree68f4d42d4314b1da93dec121d5e45f0200c2a25b /source
parentNoise3D: Re-fixed composition, finally no fake-tree remnants (diff)
downloadcuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.tar
cuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.tar.gz
cuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.tar.bz2
cuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.tar.lz
cuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.tar.xz
cuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.tar.zst
cuberite-4767a90b670d8f12384500dd2c0ab2f1cd99bbad.zip
Diffstat (limited to '')
-rw-r--r--source/Entity.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/Entity.cpp b/source/Entity.cpp
index 61d0da026..54fe70bef 100644
--- a/source/Entity.cpp
+++ b/source/Entity.cpp
@@ -159,12 +159,12 @@ void cEntity::WrapSpeed(void)
{
// There shoudn't be a need for flipping the flag on because this function is called
// after any update, so the flag is already turned on
- if (m_Speed.x > 20.0f) m_Speed.x = 20.0f;
- else if (m_Speed.x < -20.0f) m_Speed.x = -20.0f;
- if (m_Speed.y > 20.0f) m_Speed.y = 20.0f;
- else if (m_Speed.y < -20.0f) m_Speed.y = -20.0f;
- if (m_Speed.z > 20.0f) m_Speed.z = 20.0f;
- else if (m_Speed.z < -20.0f) m_Speed.z = -20.0f;
+ if (m_Speed.x > 78.0f) m_Speed.x = 78.0f;
+ else if (m_Speed.x < -78.0f) m_Speed.x = -78.0f;
+ if (m_Speed.y > 78.0f) m_Speed.y = 78.0f;
+ else if (m_Speed.y < -78.0f) m_Speed.y = -78.0f;
+ if (m_Speed.z > 78.0f) m_Speed.z = 78.0f;
+ else if (m_Speed.z < -78.0f) m_Speed.z = -78.0f;
}