mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 01:34:09 +00:00
dont hardcode first vehicle ID; little fix for roadblocks
This commit is contained in:
parent
3895853fe7
commit
876e402d1e
3 changed files with 8 additions and 7 deletions
|
@ -7989,7 +7989,7 @@ cAudioManager::ProcessVehicle(CVehicle *veh)
|
|||
if (handling)
|
||||
params.m_pTransmission = &handling->Transmission;
|
||||
|
||||
params.m_nIndex = veh->GetModelIndex() - 90;
|
||||
params.m_nIndex = veh->GetModelIndex() - MI_FIRST_VEHICLE;
|
||||
if (params.m_pVehicle->GetStatus() == STATUS_SIMPLE)
|
||||
velChange = params.m_pVehicle->AutoPilot.m_fMaxTrafficSpeed * 0.02f;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue