summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Bike.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-02 13:57:51 +0100
committeraap <aap@papnet.eu>2020-11-02 13:57:51 +0100
commit7041f11987f7a5210b66414fd219ef14d1524cda (patch)
treeece0da8f137bb01ea7c7548ecba39a1a37c30d70 /src/vehicles/Bike.cpp
parentfixed KYFC (diff)
downloadre3-7041f11987f7a5210b66414fd219ef14d1524cda.tar
re3-7041f11987f7a5210b66414fd219ef14d1524cda.tar.gz
re3-7041f11987f7a5210b66414fd219ef14d1524cda.tar.bz2
re3-7041f11987f7a5210b66414fd219ef14d1524cda.tar.lz
re3-7041f11987f7a5210b66414fd219ef14d1524cda.tar.xz
re3-7041f11987f7a5210b66414fd219ef14d1524cda.tar.zst
re3-7041f11987f7a5210b66414fd219ef14d1524cda.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Bike.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp
index 4a4b0516..b260c7d4 100644
--- a/src/vehicles/Bike.cpp
+++ b/src/vehicles/Bike.cpp
@@ -792,7 +792,7 @@ CBike::ProcessControl(void)
CSurfaceTable::GetAdhesionGroup(m_aWheelColPoints[rearLine].surfaceB) == ADHESIVE_SAND)
steer *= pBikeHandling->fSlipSteer;
f = Asin(Min(steer/SQR(fwdSpeed), 1.0))/DEGTORAD(pHandling->fSteeringLock);
- if(m_fSteerAngle < 0.0f && m_fLeanLRAngle < 0.0f &&
+ if(m_fSteerAngle < 0.0f && m_fLeanLRAngle < 0.0f ||
m_fSteerAngle > 0.0f && m_fLeanLRAngle > 0.0f)
f *= 2.0f;
f = Min(f, 1.0f);