summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-26 07:15:18 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-26 07:15:18 +0200
commita94812b28dd4fff7bcb8ef054ce0b1a350ac219c (patch)
treed68f2460274f57ab498a6bd946536f659209c948
parentFix reflections with audio time scale (diff)
downloadre3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.tar
re3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.tar.gz
re3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.tar.bz2
re3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.tar.lz
re3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.tar.xz
re3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.tar.zst
re3-a94812b28dd4fff7bcb8ef054ce0b1a350ac219c.zip
-rw-r--r--src/audio/AudioLogic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 3d7cb62f..606e9c22 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2025,7 +2025,11 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams& params, CVehicle* veh
CurrentPretendGear = 1;
bHandbrakeOnLastFrame = FALSE;
}
+#ifdef FIX_BUGS
+ if (CReplay::IsPlayingBack() || FindPlayerPed()->GetPedState() == PED_EXIT_CAR) {
+#else
if (CReplay::IsPlayingBack()) {
+#endif
accelerateState = (255.0f * Clamp(params.m_pVehicle->m_fGasPedal, 0.0f, 1.0f));
brakeState = (255.0f * Clamp(params.m_pVehicle->m_fBrakePedal, 0.0f, 1.0f));
} else {