summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-26 07:15:03 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-26 07:15:03 +0200
commit2e02aed5d5c06f5e73ffa0e27702450caa92b87a (patch)
treeb58b3e5fa7a2f7e8b5b3d36a0905621a761cc434 /src
parentkeep noinline only for broken vs versions (diff)
downloadre3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.tar
re3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.tar.gz
re3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.tar.bz2
re3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.tar.lz
re3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.tar.xz
re3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.tar.zst
re3-2e02aed5d5c06f5e73ffa0e27702450caa92b87a.zip
Diffstat (limited to 'src')
-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 1ae06e19..feafd68b 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -1227,7 +1227,11 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams& params, CAutomobile *
bHandbrakeOnLastFrame = FALSE;
CurrentPretendGear = 1;
}
+#ifdef FIX_BUGS // fix acceleration sound on exiting the vehicle
+ if (CReplay::IsPlayingBack() || FindPlayerPed()->GetPedState() == PED_EXIT_CAR)
+#else
if (CReplay::IsPlayingBack())
+#endif
accelerateState = 255.f * Clamp(automobile->m_fGasPedal, 0.0f, 1.0f);
else
accelerateState = Pads[0].GetAccelerate();