summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-10-08 19:50:10 +0200
committerGitHub <noreply@github.com>2020-10-08 19:50:10 +0200
commiteae9e7e6851c0b619f15ba96d45a4c94c18bc1a4 (patch)
tree6d05eb356b1c5e5106d2abaa47b840001b0bc991 /src/vehicles
parentMerge pull request #748 from theR4K/miamiUpstream (diff)
parentfix for wheelie cras (diff)
downloadre3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.tar
re3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.tar.gz
re3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.tar.bz2
re3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.tar.lz
re3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.tar.xz
re3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.tar.zst
re3-eae9e7e6851c0b619f15ba96d45a4c94c18bc1a4.zip
Diffstat (limited to 'src/vehicles')
-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 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());
}