From 4767a90b670d8f12384500dd2c0ab2f1cd99bbad Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Sun, 28 Apr 2013 04:15:45 +0000 Subject: Increased Maximum speed to 78 blocks per second git-svn-id: http://mc-server.googlecode.com/svn/trunk@1424 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.cpp | 12 ++++++------ 1 file 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; } -- cgit v1.2.3