summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAI.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-13 13:41:24 +0100
committeraap <aap@papnet.eu>2021-01-13 13:41:24 +0100
commit6aab948be2fe3a1c09984ced7a48e56ec145c23e (patch)
tree9284d6071a2ed7a085f79d5f7043eed00340cf15 /src/peds/PedAI.cpp
parentanim velocity union (diff)
downloadre3-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 'src/peds/PedAI.cpp')
-rw-r--r--src/peds/PedAI.cpp4
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();