summaryrefslogtreecommitdiffstats
path: root/src/peds/CivilianPed.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-03 00:52:37 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-03 00:52:37 +0200
commit55d94c99b8ef758b7a1016734dbfc6acba5c7e7d (patch)
treeb838285cbdeae5e390a0bdf3dbd552ce3c1c7130 /src/peds/CivilianPed.cpp
parentfix ternary operator (diff)
parentMerge pull request #737 from theR4K/miamiDev (diff)
downloadre3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.tar
re3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.tar.gz
re3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.tar.bz2
re3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.tar.lz
re3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.tar.xz
re3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.tar.zst
re3-55d94c99b8ef758b7a1016734dbfc6acba5c7e7d.zip
Diffstat (limited to 'src/peds/CivilianPed.cpp')
-rw-r--r--src/peds/CivilianPed.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/CivilianPed.cpp b/src/peds/CivilianPed.cpp
index 2be45ba9..1950c4b3 100644
--- a/src/peds/CivilianPed.cpp
+++ b/src/peds/CivilianPed.cpp
@@ -117,7 +117,7 @@ CCivilianPed::CivilianAI(void)
} else {
SetMoveState(PEDMOVE_WALK);
}
- } else if (threatPed->IsPlayer() && IsGangMember() && b158_80) {
+ } else if (threatPed->IsPlayer() && IsGangMember() && bCanAttackPlayerWithCops) {
SetObjective(OBJECTIVE_KILL_CHAR_ON_FOOT, m_threatEntity);
} else if (threatPed->IsPlayer() && FindPlayerPed()->m_pWanted->m_CurrentCops != 0) {
@@ -203,7 +203,7 @@ CCivilianPed::CivilianAI(void)
CPed *threatPed = (CPed*)m_threatEntity;
if (m_pedStats->m_fear <= 100 - threatPed->m_pedStats->m_temper && threatPed->m_nPedType != PEDTYPE_COP) {
if (threatPed->GetWeapon()->IsTypeMelee() || !GetWeapon()->IsTypeMelee()) {
- if (threatPed->IsPlayer() && IsGangMember() && b158_80) {
+ if (threatPed->IsPlayer() && IsGangMember() && bCanAttackPlayerWithCops) {
SetObjective(OBJECTIVE_KILL_CHAR_ON_FOOT, m_threatEntity);
} else if (threatPed->IsPlayer() && FindPlayerPed()->m_pWanted->m_CurrentCops != 0) {