diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-09 23:06:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 23:06:16 +0200 |
commit | 30723cf723a6b866c158b9f721f5a3dd01a5d95c (patch) | |
tree | 4f4cfd03c6eabfe9ef860c762570760fdedb5f90 /src/vehicles/Automobile.cpp | |
parent | Merge pull request #653 from Domiiniik/miami (diff) | |
parent | VC fighting, Peds, many fixes including ghost bikes (diff) | |
download | re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.tar re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.tar.gz re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.tar.bz2 re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.tar.lz re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.tar.xz re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.tar.zst re3-30723cf723a6b866c158b9f721f5a3dd01a5d95c.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 217b383f..fc856de1 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -1349,7 +1349,7 @@ CAutomobile::ProcessControl(void) if(!IsAlarmOn()) ReduceHornCounter(); }else{ - if(UsesSiren(GetModelIndex())){ + if(UsesSiren()){ if(Pads[0].bHornHistory[Pads[0].iCurrHornHistory]){ if(Pads[0].bHornHistory[(Pads[0].iCurrHornHistory+4) % 5] && Pads[0].bHornHistory[(Pads[0].iCurrHornHistory+3) % 5]) @@ -1559,7 +1559,7 @@ CAutomobile::ProcessControl(void) if(m_bSirenOrAlarm && (CTimer::GetFrameCounter()&7) == 5 && - UsesSiren(GetModelIndex()) && GetModelIndex() != MI_MRWHOOP) + UsesSiren() && GetModelIndex() != MI_MRWHOOP) CCarAI::MakeWayForCarWithSiren(this); |