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/control/CarCtrl.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 '')
-rw-r--r-- | src/control/CarCtrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 3b19a5b0..514150a6 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -701,7 +701,7 @@ CCarCtrl::GenerateOneRandomCar() pVehicle->SetMoveSpeed(0.0f, 0.0f, 0.0f); for (int i = 0; i < pVehicle->m_nNumPassengers; i++) { if (pVehicle->pPassengers[i]) { - pVehicle->pPassengers[i]->SetObjective(OBJECTIVE_LEAVE_VEHICLE, pVehicle); + pVehicle->pPassengers[i]->SetObjective(OBJECTIVE_LEAVE_CAR, pVehicle); pVehicle->pPassengers[i]->m_nLastPedState = PED_WANDER_PATH; pVehicle->pPassengers[i]->m_vehicleInAccident = pVehicle; pVehicle->pPassengers[i]->bDeadPedInFrontOfCar = true; @@ -709,7 +709,7 @@ CCarCtrl::GenerateOneRandomCar() } } if (pVehicle->pDriver) { - pVehicle->pDriver->SetObjective(OBJECTIVE_LEAVE_VEHICLE, pVehicle); + pVehicle->pDriver->SetObjective(OBJECTIVE_LEAVE_CAR, pVehicle); pVehicle->pDriver->m_nLastPedState = PED_WANDER_PATH; pVehicle->pDriver->m_vehicleInAccident = pVehicle; pVehicle->pDriver->bDeadPedInFrontOfCar = true; |