mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-27 22:35:45 +00:00
Fix acceleration sound on exiting the vehicle
This commit is contained in:
parent
8de1ffb84d
commit
a94812b28d
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue