summaryrefslogtreecommitdiffstats
path: root/src/control/CarAI.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-03 15:51:33 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-03 15:51:33 +0200
commit15548758ac825e61648fd6adc2fba96256875fac (patch)
tree486454e661267666b04c6c8e2d2646cb54f0e3ed /src/control/CarAI.cpp
parentRe-enable console for debugging frontend (diff)
downloadre3-15548758ac825e61648fd6adc2fba96256875fac.tar
re3-15548758ac825e61648fd6adc2fba96256875fac.tar.gz
re3-15548758ac825e61648fd6adc2fba96256875fac.tar.bz2
re3-15548758ac825e61648fd6adc2fba96256875fac.tar.lz
re3-15548758ac825e61648fd6adc2fba96256875fac.tar.xz
re3-15548758ac825e61648fd6adc2fba96256875fac.tar.zst
re3-15548758ac825e61648fd6adc2fba96256875fac.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index 41dcaa59..ab44510d 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -509,14 +509,14 @@ void CCarAI::AddFiretruckOccupants(CVehicle* pVehicle)
void CCarAI::TellOccupantsToLeaveCar(CVehicle* pVehicle)
{
if (pVehicle->pDriver){
- pVehicle->pDriver->SetObjective(OBJECTIVE_LEAVE_VEHICLE, pVehicle);
+ pVehicle->pDriver->SetObjective(OBJECTIVE_LEAVE_CAR, pVehicle);
if (pVehicle->GetModelIndex() == MI_AMBULAN)
pVehicle->pDriver->Say(SOUND_PED_LEAVE_VEHICLE);
}
int timer = 100;
for (int i = 0; i < pVehicle->m_nNumMaxPassengers; i++){
if (pVehicle->pPassengers[i]) {
- pVehicle->pPassengers[i]->SetObjective(OBJECTIVE_LEAVE_VEHICLE, pVehicle);
+ pVehicle->pPassengers[i]->SetObjective(OBJECTIVE_LEAVE_CAR, pVehicle);
}
}
}