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/Vehicle.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/Vehicle.cpp')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index e26fd99f..2c296ee2 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -1512,7 +1512,7 @@ CVehicle::MakeNonDraggedPedsLeaveVehicle(CPed *ped1, CPed *ped2, CPlayerPed *&pl for(i = 0; i < numPeds2; i++) if(peds2[i]->IsFemale() || CGeneral::GetRandomTrueFalse()){ peds2[i]->m_leaveCarTimer = CTimer::GetTimeInMilliseconds() + 10000; - peds2[i]->b156_8 = true; + peds2[i]->bHeldHostageInCar = true; peds2[i]->bFleeAfterExitingCar = true; } } @@ -1557,9 +1557,9 @@ CVehicle::IsLawEnforcementVehicle(void) } bool -CVehicle::UsesSiren(uint32 id) +CVehicle::UsesSiren(void) { - switch(id){ + switch(GetModelIndex()){ case MI_FIRETRUCK: case MI_AMBULAN: case MI_FBICAR: |