From: drjaska Date: Mon, 22 May 2023 06:17:09 +0000 (+0300) Subject: fix team_has_ball detection X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2FMario%2Fteam_keepaway;p=xonotic%2Fxonotic-data.pk3dir.git fix team_has_ball detection --- 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;