summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-07-09 23:06:16 +0200
committerGitHub <noreply@github.com>2020-07-09 23:06:16 +0200
commit30723cf723a6b866c158b9f721f5a3dd01a5d95c (patch)
tree4f4cfd03c6eabfe9ef860c762570760fdedb5f90 /src/vehicles/Automobile.cpp
parentMerge pull request #653 from Domiiniik/miami (diff)
parentVC fighting, Peds, many fixes including ghost bikes (diff)
downloadre3-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.cpp4
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);