summaryrefslogtreecommitdiffstats
path: root/src/control/CarAI.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-15 17:27:30 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-15 17:43:19 +0200
commite30e1ccccd80e6b3971819080006c4361d53813e (patch)
tree71099cf39d1247e48bc81e6eb273008fa156e97a /src/control/CarAI.cpp
parentmerge miami (diff)
downloadre3-e30e1ccccd80e6b3971819080006c4361d53813e.tar
re3-e30e1ccccd80e6b3971819080006c4361d53813e.tar.gz
re3-e30e1ccccd80e6b3971819080006c4361d53813e.tar.bz2
re3-e30e1ccccd80e6b3971819080006c4361d53813e.tar.lz
re3-e30e1ccccd80e6b3971819080006c4361d53813e.tar.xz
re3-e30e1ccccd80e6b3971819080006c4361d53813e.tar.zst
re3-e30e1ccccd80e6b3971819080006c4361d53813e.zip
Diffstat (limited to 'src/control/CarAI.cpp')
-rw-r--r--src/control/CarAI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index 11d756b4..87bd033c 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -599,8 +599,11 @@ void CCarAI::TellOccupantsToLeaveCar(CVehicle* pVehicle)
{
if (pVehicle->pDriver){
pVehicle->pDriver->SetObjective(OBJECTIVE_LEAVE_CAR, pVehicle);
- if (pVehicle->GetModelIndex() == MI_AMBULAN)
+ switch (pVehicle->GetModelIndex()) {
+ case MI_AMBULAN:
pVehicle->pDriver->Say(SOUND_PED_LEAVE_VEHICLE);
+ break;
+ }
}
int timer = 100;
for (int i = 0; i < pVehicle->m_nNumMaxPassengers; i++){