From 2e02aed5d5c06f5e73ffa0e27702450caa92b87a Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 26 Aug 2021 08:15:03 +0300 Subject: [PATCH] Fix acceleration sound on exiting the vehicle --- src/audio/AudioLogic.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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();