diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-08 16:26:23 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-09 16:01:07 +0200 |
commit | 67a3c7d2ee2787b254099bf22a9c261146ce5eed (patch) | |
tree | 70124341489b7293a9d4eccfe2d74df263ab5e3e /src/vehicles/Automobile.cpp | |
parent | Merge pull request #652 from Domiiniik/miami (diff) | |
download | re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.gz re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.bz2 re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.lz re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.xz re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.tar.zst re3-67a3c7d2ee2787b254099bf22a9c261146ce5eed.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); |