mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-27 08:35:40 +00:00
fix boats
This commit is contained in:
parent
662246b9e2
commit
4b892e9eb9
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue