diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 12:20:01 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-10 12:20:01 +0200 |
commit | 4b892e9eb9d4bc7a535ef60204db857afd7e3eb6 (patch) | |
tree | 1544037570bbdae6dd83b54f07931d3abf59bf3e | |
parent | fix boat (diff) | |
download | re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.tar re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.tar.gz re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.tar.bz2 re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.tar.lz re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.tar.xz re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.tar.zst re3-4b892e9eb9d4bc7a535ef60204db857afd7e3eb6.zip |
-rw-r--r-- | src/vehicles/Boat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp index 4b55ffa7..5694651c 100644 --- a/src/vehicles/Boat.cpp +++ b/src/vehicles/Boat.cpp @@ -401,10 +401,10 @@ CBoat::ProcessControl(void) } // Slow down or push down boat as it approaches the world limits - m_vecMoveSpeed.x = Min(m_vecMoveSpeed.x, -(GetPosition().x - (WORLD_MAX_X-50.0f))*0.01f); // east - m_vecMoveSpeed.x = Max(m_vecMoveSpeed.x, -(GetPosition().x - (WORLD_MIN_X+50.0f))*0.01f); // west - m_vecMoveSpeed.y = Min(m_vecMoveSpeed.y, -(GetPosition().y - (WORLD_MAX_Y-50.0f))*0.01f); // north - m_vecMoveSpeed.y = Max(m_vecMoveSpeed.y, -(GetPosition().y - (WORLD_MIN_Y+50.0f))*0.01f); // south + m_vecMoveSpeed.x = Min(m_vecMoveSpeed.x, -(GetPosition().x - (WORLD_MAX_X-100.0f))*0.01f); // east + m_vecMoveSpeed.x = Max(m_vecMoveSpeed.x, -(GetPosition().x - (WORLD_MIN_X+100.0f))*0.01f); // west + m_vecMoveSpeed.y = Min(m_vecMoveSpeed.y, -(GetPosition().y - (WORLD_MAX_Y-100.0f))*0.01f); // north + m_vecMoveSpeed.y = Max(m_vecMoveSpeed.y, -(GetPosition().y - (WORLD_MIN_Y+100.0f))*0.01f); // south if(!onLand && bBoatInWater) ApplyWaterResistance(); |