summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-26 16:00:06 +0100
committeraap <aap@papnet.eu>2020-12-26 16:00:06 +0100
commit0f020127f393a466e4d8be55e7de4dc7ff4950eb (patch)
treec02d8ac7c5d1ac93aa114a0a84d0f87880ca8623 /src/vehicles
parentfix a struct init (diff)
downloadre3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.tar
re3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.tar.gz
re3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.tar.bz2
re3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.tar.lz
re3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.tar.xz
re3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.tar.zst
re3-0f020127f393a466e4d8be55e7de4dc7ff4950eb.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Bike.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp
index 2148a1a4..0cfbedc1 100644
--- a/src/vehicles/Bike.cpp
+++ b/src/vehicles/Bike.cpp
@@ -478,7 +478,7 @@ CBike::ProcessControl(void)
if(m_vecMoveSpeedAvg.MagnitudeSqr() <= sq(moveSpeedLimit*CTimer::GetTimeStep()) &&
m_vecTurnSpeedAvg.MagnitudeSqr() <= sq(turnSpeedLimit*CTimer::GetTimeStep()) &&
- m_fDistanceTravelled < distanceLimit &&
+ m_fDistanceTravelled < distanceLimit ||
makeStatic){
m_nStaticFrames++;
@@ -1146,7 +1146,12 @@ CBike::ProcessControl(void)
float suspChange = m_aSuspensionSpringRatioPrev[i] - m_aSuspensionSpringRatio[i];
if(suspChange > 0.3f && (i == BIKESUSP_F1 || i == BIKESUSP_R1) && speedsq > 0.04f){
if(GetStatus() == STATUS_PLAYER || GetStatus() == STATUS_PHYSICS){
+#ifdef FIX_BUGS
+ // only two wheels but 4 suspensions
+ if(m_wheelStatus[i/2] == WHEEL_STATUS_BURST)
+#else
if(m_wheelStatus[i] == WHEEL_STATUS_BURST)
+#endif
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_JUMP_2, suspChange);
else
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_JUMP, suspChange);