diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-06-22 03:02:44 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-06-22 03:20:56 +0200 |
commit | f3ed6659c32ec61c2c4c806707655e0c58123e4c (patch) | |
tree | 1d71dd86ef08d87e4ed703302224d330cecf4ae2 /src/peds/EmergencyPed.cpp | |
parent | killing peds increase chaos level (diff) | |
download | re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.gz re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.bz2 re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.lz re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.xz re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.tar.zst re3-f3ed6659c32ec61c2c4c806707655e0c58123e4c.zip |
Diffstat (limited to 'src/peds/EmergencyPed.cpp')
-rw-r--r-- | src/peds/EmergencyPed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/EmergencyPed.cpp b/src/peds/EmergencyPed.cpp index 44c3d066..a33e31f9 100644 --- a/src/peds/EmergencyPed.cpp +++ b/src/peds/EmergencyPed.cpp @@ -185,12 +185,12 @@ CEmergencyPed::MedicAI(void) } if (InVehicle()) { - if (m_pMyVehicle->IsCar() && m_objective != OBJECTIVE_LEAVE_VEHICLE) { + if (m_pMyVehicle->IsCar() && m_objective != OBJECTIVE_LEAVE_CAR) { if (gAccidentManager.FindNearestAccident(m_pMyVehicle->GetPosition(), &distToEmergency) && distToEmergency < 25.0f && m_pMyVehicle->m_vecMoveSpeed.Magnitude() < 0.01f) { m_pMyVehicle->AutoPilot.m_nCarMission = MISSION_NONE; - SetObjective(OBJECTIVE_LEAVE_VEHICLE, m_pMyVehicle); + SetObjective(OBJECTIVE_LEAVE_CAR, m_pMyVehicle); Say(SOUND_PED_LEAVE_VEHICLE); } else if (m_pMyVehicle->pDriver == this && m_nPedState == PED_DRIVING && m_pMyVehicle->AutoPilot.m_nCarMission == MISSION_NONE && !(CGeneral::GetRandomNumber() & 31)) { |