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:27:30 +0200 |
commit | 5fe04940be9419f87a624de917b0fae319761e1f (patch) | |
tree | 0aeba51c10637ba3db4c495bd1832c9bb8dab733 /src | |
parent | Fix ifdef for audio reflection members (diff) | |
download | re3-5fe04940be9419f87a624de917b0fae319761e1f.tar re3-5fe04940be9419f87a624de917b0fae319761e1f.tar.gz re3-5fe04940be9419f87a624de917b0fae319761e1f.tar.bz2 re3-5fe04940be9419f87a624de917b0fae319761e1f.tar.lz re3-5fe04940be9419f87a624de917b0fae319761e1f.tar.xz re3-5fe04940be9419f87a624de917b0fae319761e1f.tar.zst re3-5fe04940be9419f87a624de917b0fae319761e1f.zip |
Diffstat (limited to 'src')
-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 d2a82121..a894731b 100644 --- a/src/control/CarAI.cpp +++ b/src/control/CarAI.cpp @@ -510,8 +510,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++){ |