mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-25 13:13:44 +00:00
Fix acceleration sound on exiting the vehicle
This commit is contained in:
parent
885467bcd0
commit
2e02aed5d5
1 changed files with 4 additions and 0 deletions
|
@ -1227,7 +1227,11 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams& params, CAutomobile *
|
||||||
bHandbrakeOnLastFrame = FALSE;
|
bHandbrakeOnLastFrame = FALSE;
|
||||||
CurrentPretendGear = 1;
|
CurrentPretendGear = 1;
|
||||||
}
|
}
|
||||||
|
#ifdef FIX_BUGS // fix acceleration sound on exiting the vehicle
|
||||||
|
if (CReplay::IsPlayingBack() || FindPlayerPed()->GetPedState() == PED_EXIT_CAR)
|
||||||
|
#else
|
||||||
if (CReplay::IsPlayingBack())
|
if (CReplay::IsPlayingBack())
|
||||||
|
#endif
|
||||||
accelerateState = 255.f * Clamp(automobile->m_fGasPedal, 0.0f, 1.0f);
|
accelerateState = 255.f * Clamp(automobile->m_fGasPedal, 0.0f, 1.0f);
|
||||||
else
|
else
|
||||||
accelerateState = Pads[0].GetAccelerate();
|
accelerateState = Pads[0].GetAccelerate();
|
||||||
|
|
Loading…
Reference in a new issue