summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAI.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-18 20:20:44 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-18 20:20:44 +0100
commit4f36a1fb770653f26dd4fb3f89a6596015fbb4af (patch)
treeacefb8b0fb1d2ffbf2136e643d327a54a6b27a01 /src/peds/PedAI.cpp
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
downloadre3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.tar
re3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.tar.gz
re3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.tar.bz2
re3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.tar.lz
re3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.tar.xz
re3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.tar.zst
re3-4f36a1fb770653f26dd4fb3f89a6596015fbb4af.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PedAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp
index a28ded8c..b945cf9b 100644
--- a/src/peds/PedAI.cpp
+++ b/src/peds/PedAI.cpp
@@ -6488,7 +6488,7 @@ CPed::KillCharOnFootArmed(CVector &ourPos, CVector &targetPos, CVector &distWith
}
}
if (m_pedInObjective->IsPlayer() && m_nPedType != PEDTYPE_COP
- && CharCreatedBy != MISSION_CHAR && FindPlayerPed()->m_pWanted->m_CurrentCops != 0) {
+ && CharCreatedBy != MISSION_CHAR && FindPlayerPed()->m_pWanted->m_CurrentCops != 0/* TODO: && !bAttacksPlayerWithCops*/) {
SetObjective(OBJECTIVE_FLEE_ON_FOOT_TILL_SAFE);
return CANT_ATTACK;