From: terencehill Date: Thu, 17 Jun 2021 13:21:40 +0000 (+0200) Subject: Fix "Adding score to unknown player!" warning X-Git-Tag: xonotic-v0.8.6~426^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5da84c42030bfae1110e2ccc65ffa1adbae35f70;p=xonotic%2Fxonotic-data.pk3dir.git Fix "Adding score to unknown player!" warning --- diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 1778e34be..9185525e7 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -342,7 +342,8 @@ MUTATOR_HOOKFUNCTION(lms, Damage_Calculate) entity frag_target = M_ARGV(2, entity); float frag_damage = M_ARGV(4, float); - if (IS_PLAYER(frag_attacker) && !IS_DEAD(frag_target) && frag_attacker != frag_target) + if (IS_PLAYER(frag_attacker) && !IS_DEAD(frag_attacker) + && IS_PLAYER(frag_target) && !IS_DEAD(frag_target) && frag_attacker != frag_target) { float vampire_factor = 0;