dont hardcode first vehicle ID; little fix for roadblocks

This commit is contained in:
aap
2020-05-07 09:38:07 +02:00
parent 3895853fe7
commit 876e402d1e
3 changed files with 8 additions and 7 deletions

View File

@ -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