]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display win message to everyone, like for other messages. Also remove an unnecessary...
authorterencehill <piuntn@gmail.com>
Tue, 11 Dec 2012 15:03:35 +0000 (16:03 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 11 Dec 2012 15:03:35 +0000 (16:03 +0100)
qcsrc/server/bot/aim.qc
qcsrc/server/mutators/gamemode_freezetag.qc

index 3bff21ecf00a4801bd083ba12315087312f28931..cb42aa5c2c4b0b158697b4122a51c27e88543d7d 100644 (file)
@@ -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.
index e9ff6153ffd84bd8c33354957e5af6badd168a89..8b4fa02ba32be7ae761f0a08e09638b4010a7c91 100644 (file)
@@ -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);
        }