summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-15 17:41:59 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-15 17:43:30 +0200
commit495a447c8a17deb410af77f7f28cf0c70259253e (patch)
treec30ed1cbeafe193913e8c55999036261608b4302 /src/control
parentbruh (diff)
downloadre3-495a447c8a17deb410af77f7f28cf0c70259253e.tar
re3-495a447c8a17deb410af77f7f28cf0c70259253e.tar.gz
re3-495a447c8a17deb410af77f7f28cf0c70259253e.tar.bz2
re3-495a447c8a17deb410af77f7f28cf0c70259253e.tar.lz
re3-495a447c8a17deb410af77f7f28cf0c70259253e.tar.xz
re3-495a447c8a17deb410af77f7f28cf0c70259253e.tar.zst
re3-495a447c8a17deb410af77f7f28cf0c70259253e.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/CarAI.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index 1f5b9161..1ee99b89 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -626,8 +626,18 @@ void CCarAI::TellOccupantsToFleeCar(CVehicle* pVehicle)
{
if (pVehicle->pDriver && !pVehicle->pDriver->IsPlayer()) {
pVehicle->pDriver->SetObjective(OBJECTIVE_FLEE_ON_FOOT_TILL_SAFE);
- if (pVehicle->GetModelIndex() != MI_FIRETRUCK && pVehicle->GetModelIndex() == MI_AMBULAN)
+ switch (pVehicle->GetModelIndex()) {
+ case MI_FIRETRUCK:
+ case MI_FBIRANCH:
+ case MI_ENFORCER:
+ case MI_BARRACKS:
+ case MI_RHINO:
+ case MI_POLICE:
+ break;
+ case MI_AMBULAN:
pVehicle->pDriver->Say(SOUND_PED_LEAVE_VEHICLE);
+ break;
+ }
}
int timer = 100;
for (int i = 0; i < pVehicle->m_nNumMaxPassengers; i++) {