]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bug with world variable - add condition for player
authorAriosJentu <darthpoezd@gmail.com>
Sun, 25 Aug 2019 15:23:10 +0000 (01:23 +1000)
committerAriosJentu <darthpoezd@gmail.com>
Sun, 25 Aug 2019 15:23:10 +0000 (01:23 +1000)
qcsrc/server/g_damage.qc

index 33dffd1a4cb3d89a2d4969e32366d52aa4e332ed..fc50d3af08a4b33e081f5d3464225f0461883609 100644 (file)
@@ -888,7 +888,7 @@ void Damage(entity targ, entity inflictor, entity attacker, float damage, int de
                }
        }
 
-       if (IS_DEAD(targ)) {
+       if (IS_DEAD(targ) && IS_PLAYER(attacker)) {
                if (targ != attacker) {
                        attacker.check_suicide = 1;
                } else {