From: terencehill Date: Tue, 11 Dec 2012 15:03:35 +0000 (+0100) Subject: Display win message to everyone, like for other messages. Also remove an unnecessary... X-Git-Tag: xonotic-v0.7.0~61^2~88 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b811bf5fae868ebf428ebb057b13470d74f9e34e;p=xonotic%2Fxonotic-data.pk3dir.git Display win message to everyone, like for other messages. Also remove an unnecessary check. --- diff --git a/qcsrc/server/bot/aim.qc b/qcsrc/server/bot/aim.qc index 3bff21ecf..cb42aa5c2 100644 --- a/qcsrc/server/bot/aim.qc +++ b/qcsrc/server/bot/aim.qc @@ -111,9 +111,8 @@ float bot_shouldattack(entity e) return FALSE; } - if(g_freezetag) - if(e.freezetag_frozen) - return FALSE; + if(e.freezetag_frozen) + return FALSE; // If neither player has ball then don't attack unless the ball is on the // ground. diff --git a/qcsrc/server/mutators/gamemode_freezetag.qc b/qcsrc/server/mutators/gamemode_freezetag.qc index e9ff6153f..8b4fa02ba 100644 --- a/qcsrc/server/mutators/gamemode_freezetag.qc +++ b/qcsrc/server/mutators/gamemode_freezetag.qc @@ -90,9 +90,8 @@ float freezetag_CheckWinner() teamname = "^3Yellow Team"; else teamname = "^6Pink Team"; - FOR_EACH_PLAYER(e) { - centerprint(e, strcat(teamname, "^5 wins the round, all other teams were frozen.\n")); - } + FOR_EACH_REALCLIENT(e) + centerprint(e, strcat(teamname, "^5 wins the round, all other teams were frozen.")); bprint(teamname, "^5 wins the round since all the other teams were frozen.\n"); TeamScore_AddToTeam(winner.team, ST_SCORE, +1); }