diff options
author | aap <aap@papnet.eu> | 2021-01-13 13:41:24 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-13 13:41:24 +0100 |
commit | 6aab948be2fe3a1c09984ced7a48e56ec145c23e (patch) | |
tree | 9284d6071a2ed7a085f79d5f7043eed00340cf15 /src/peds/PedAI.cpp | |
parent | anim velocity union (diff) | |
download | re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.tar re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.tar.gz re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.tar.bz2 re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.tar.lz re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.tar.xz re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.tar.zst re3-6aab948be2fe3a1c09984ced7a48e56ec145c23e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp index 6d12c909..46476e55 100644 --- a/src/peds/PedAI.cpp +++ b/src/peds/PedAI.cpp @@ -1754,7 +1754,7 @@ CPed::ProcessObjective(void) if (bInVehicle) { bScriptObjectiveCompleted = true; RestorePreviousObjective(); - } else if (m_hitRecoverTimer < CTimer::GetTimeInMilliseconds()) { + } else if (m_carJackTimer < CTimer::GetTimeInMilliseconds()) { CVehicle *carToSteal = nil; float closestCarDist = ENTER_CAR_MAX_DIST; CVector pos = GetPosition(); @@ -1780,7 +1780,7 @@ CPed::ProcessObjective(void) } if (carToSteal) { SetObjective(OBJECTIVE_ENTER_CAR_AS_DRIVER, carToSteal); - m_hitRecoverTimer = CTimer::GetTimeInMilliseconds() + 5000; + m_carJackTimer = CTimer::GetTimeInMilliseconds() + 5000; } else { RestorePreviousObjective(); RestorePreviousState(); |