summaryrefslogtreecommitdiffstats
path: root/src/control/RoadBlocks.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-08 16:26:23 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-09 16:01:07 +0200
commit67a3c7d2ee2787b254099bf22a9c261146ce5eed (patch)
tree70124341489b7293a9d4eccfe2d74df263ab5e3e /src/control/RoadBlocks.cpp
parentMerge pull request #652 from Domiiniik/miami (diff)
downloadre3-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/control/RoadBlocks.cpp')
-rw-r--r--src/control/RoadBlocks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp
index 5d466be2..010dec3f 100644
--- a/src/control/RoadBlocks.cpp
+++ b/src/control/RoadBlocks.cpp
@@ -67,7 +67,7 @@ CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType
eCopType copType = COP_STREET;
switch (pVehicle->GetModelIndex())
{
- case MI_FBICAR:
+ case MI_FBIRANCH:
modelInfoId = MI_FBI;
copType = COP_FBI;
break;
@@ -236,7 +236,7 @@ CRoadBlocks::CreateRoadBlockBetween2Points(CVector point1, CVector point2)
pVehicle->AutoPilot.m_nNextLane = pVehicle->AutoPilot.m_nCurrentLane = 0;
pVehicle->AutoPilot.m_nCruiseSpeed = pVehicle->AutoPilot.m_fMaxTrafficSpeed = 0;
pVehicle->bExtendedRange = true;
- if (pVehicle->UsesSiren(pVehicle->GetModelIndex()) && CGeneral::GetRandomNumber() & 1)
+ if (pVehicle->UsesSiren() && CGeneral::GetRandomNumber() & 1)
pVehicle->m_bSirenOrAlarm = true;
if (pVehicle->GetUp().z > 0.94f) {
CVisibilityPlugins::SetClumpAlpha(pVehicle->GetClump(), 0);