diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-15 17:27:30 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-15 17:43:19 +0200 |
commit | e30e1ccccd80e6b3971819080006c4361d53813e (patch) | |
tree | 71099cf39d1247e48bc81e6eb273008fa156e97a /src/control | |
parent | merge miami (diff) | |
download | re3-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')
-rw-r--r-- | src/control/CarAI.cpp | 5 |
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++){ |