summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-19 11:57:12 +0200
committeraap <aap@papnet.eu>2019-07-19 11:57:12 +0200
commit59145cea83da6d0ade8221dbe8c1469be8084ea0 (patch)
tree3f6dde8e3840e5ebe641f6666c6d790f4a1f1950 /src/peds
parent*cough* (diff)
downloadre3-59145cea83da6d0ade8221dbe8c1469be8084ea0.tar
re3-59145cea83da6d0ade8221dbe8c1469be8084ea0.tar.gz
re3-59145cea83da6d0ade8221dbe8c1469be8084ea0.tar.bz2
re3-59145cea83da6d0ade8221dbe8c1469be8084ea0.tar.lz
re3-59145cea83da6d0ade8221dbe8c1469be8084ea0.tar.xz
re3-59145cea83da6d0ade8221dbe8c1469be8084ea0.tar.zst
re3-59145cea83da6d0ade8221dbe8c1469be8084ea0.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 924098bc..80b4b5db 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -3461,7 +3461,7 @@ CPed::InflictDamage(CEntity* damagedBy, eWeaponType method, float damage, ePedPi
case WEAPONTYPE_ROCKETLAUNCHER:
case WEAPONTYPE_GRENADE:
case WEAPONTYPE_EXPLOSION:
- if (bCanPointGunAtTarget)
+ if (bExplosionProof)
return false;
if (CGame::nastyGame && !IsPlayer() && !bInVehicle &&
@@ -3483,7 +3483,7 @@ CPed::InflictDamage(CEntity* damagedBy, eWeaponType method, float damage, ePedPi
}
// fall through
case WEAPONTYPE_MOLOTOV:
- if (m_flagB2)
+ if (bExplosionProof)
return false;
switch (direction) {