mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 14:53:46 +00:00
fix world bounds check for cars
This commit is contained in:
parent
219af60102
commit
4a7b3d6d7b
1 changed files with 2 additions and 2 deletions
|
@ -1641,13 +1641,13 @@ CAutomobile::ProcessControl(void)
|
|||
// TODO: make the numbers defines
|
||||
|
||||
float heading;
|
||||
if(GetPosition().x > 1950.0f-400.0f){
|
||||
if(GetPosition().x > 1950.0f){
|
||||
if(m_vecMoveSpeed.x > 0.0f)
|
||||
m_vecMoveSpeed.x *= -1.0f;
|
||||
heading = GetForward().Heading();
|
||||
if(heading > 0.0f) // going west
|
||||
SetHeading(-heading);
|
||||
}else if(GetPosition().x < -1950.0f-400.0f){
|
||||
}else if(GetPosition().x < -1950.0f){
|
||||
if(m_vecMoveSpeed.x < 0.0f)
|
||||
m_vecMoveSpeed.x *= -1.0f;
|
||||
heading = GetForward().Heading();
|
||||
|
|
Loading…
Reference in a new issue