diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-10-08 21:45:37 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-08 21:45:37 +0200 |
commit | 570ccb7db1c94bf9adf62a8809dfa648139a3915 (patch) | |
tree | 8dadceb031c51a2cffc6fccd7600c95a16fd45e1 /src/vehicles/Automobile.cpp | |
parent | update librw (diff) | |
parent | Merge pull request #756 from erorcun/miami (diff) | |
download | re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.gz re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.bz2 re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.lz re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.xz re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.zst re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 01a4f094..1316985d 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -841,8 +841,8 @@ CAutomobile::ProcessControl(void) m_nBusDoorTimerEnd -= CTimer::GetTimeStepInMilliseconds(); } - if(m_aSuspensionSpringRatio[0] < 1.0f || m_aSuspensionSpringRatio[1] < 1.0f || - m_aSuspensionSpringRatio[2] < 1.0f || m_aSuspensionSpringRatio[3] < 1.0f) + if((m_aSuspensionSpringRatio[0] < 1.0f || m_aSuspensionSpringRatio[2] < 1.0f) && + (m_aSuspensionSpringRatio[1] < 1.0f || m_aSuspensionSpringRatio[3] < 1.0f)) ApplyTurnForce(-GRAVITY*Min(m_fTurnMass, 2500.0f)*GetUp(), -1.0f*GetForward()); } |