From fb7d62368bb556d3148abb55426fe4b5f610c189 Mon Sep 17 00:00:00 2001 From: drjaska Date: Mon, 22 May 2023 09:17:09 +0300 Subject: [PATCH] fix team_has_ball detection --- qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc b/qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc index 5419e96c9..0028baf65 100644 --- a/qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc +++ b/qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc @@ -362,7 +362,7 @@ MUTATOR_HOOKFUNCTION(tka, PlayerDies) if(frag_attacker != frag_target && IS_PLAYER(frag_attacker) && DIFF_TEAM(frag_attacker, frag_target)) { bool team_has_ball = false; - IL_EACH(g_tkaballs, it.owner != frag_attacker && SAME_TEAM(it, frag_attacker), + IL_EACH(g_tkaballs, it.owner != frag_attacker && SAME_TEAM(it.owner, frag_attacker), { team_has_ball = true; break; -- 2.39.2