summaryrefslogtreecommitdiffstats
path: root/src/weapons/Weapon.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-07-01 14:28:43 +0200
committerGitHub <noreply@github.com>2020-07-01 14:28:43 +0200
commiteda50bc32bafaea788def2f00f4ac036329dd46c (patch)
treeef0200e6f8ce0e24ef52ccb8b70c32c1cbdb35f3 /src/weapons/Weapon.cpp
parentlittle fix (diff)
downloadre3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar
re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.gz
re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.bz2
re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.lz
re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.xz
re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.zst
re3-eda50bc32bafaea788def2f00f4ac036329dd46c.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/Weapon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 378e621a..aea14f6a 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -874,7 +874,7 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
if ( victim->IsPed() && ((CPed*)shooter)->m_nPedType != ((CPed*)victim)->m_nPedType || ((CPed*)shooter)->m_nPedType == PEDTYPE_PLAYER2 )
{
CPed *victimPed = (CPed *)victim;
- if ( !victimPed->OnGround() && victim != shooter )
+ if ( !victimPed->DyingOrDead() && victim != shooter )
{
if ( victimPed->DoesLOSBulletHitPed(*point) )
{