summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-09 00:13:29 +0100
committeraap <aap@papnet.eu>2021-01-09 00:13:29 +0100
commit4a7b3d6d7b3d0c3b548d2e87be834e003509a267 (patch)
tree31d6985558532ef6fda385cea26d5f9eba88ac44 /src/vehicles/Automobile.cpp
parenttimecycle back to normal (diff)
downloadre3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.tar
re3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.tar.gz
re3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.tar.bz2
re3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.tar.lz
re3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.tar.xz
re3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.tar.zst
re3-4a7b3d6d7b3d0c3b548d2e87be834e003509a267.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index accaace2..6db4313d 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -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();