]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix team_has_ball detection Mario/team_keepaway
authordrjaska <drjaska83@gmail.com>
Mon, 22 May 2023 06:17:09 +0000 (09:17 +0300)
committerdrjaska <drjaska83@gmail.com>
Mon, 22 May 2023 06:17:09 +0000 (09:17 +0300)
qcsrc/common/gamemodes/gamemode/tka/sv_tka.qc

index 5419e96c9936ad65af70dc72089e4fdf303009a3..0028baf65165a688e22207cd772f34695f41429b 100644 (file)
@@ -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;