From 5306af9d49a96089cb75c15f082f694f8570e39a Mon Sep 17 00:00:00 2001 From: AriosJentu Date: Mon, 26 Aug 2019 01:23:10 +1000 Subject: [PATCH] Fix bug with world variable - add condition for player --- qcsrc/server/g_damage.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2