diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-01 14:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 14:28:43 +0200 |
commit | eda50bc32bafaea788def2f00f4ac036329dd46c (patch) | |
tree | ef0200e6f8ce0e24ef52ccb8b70c32c1cbdb35f3 /src/weapons/Weapon.cpp | |
parent | little fix (diff) | |
download | re3-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 'src/weapons/Weapon.cpp')
-rw-r--r-- | src/weapons/Weapon.cpp | 2 |
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) ) { |