From: AriosJentu Date: Sun, 25 Aug 2019 15:23:10 +0000 (+1000) Subject: Fix bug with world variable - add condition for player X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5306af9d49a96089cb75c15f082f694f8570e39a;p=xonotic%2Fxonotic-data.pk3dir.git Fix bug with world variable - add condition for player --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 33dffd1a4..fc50d3af0 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -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 {