]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do not send the centerprint countdown message when an arena game ends (and there...
authorterencehill <piuntn@gmail.com>
Sun, 1 Jan 2012 18:35:10 +0000 (19:35 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 1 Jan 2012 18:35:10 +0000 (19:35 +0100)
qcsrc/server/arena.qc

index c89c2b2efada451a84b1990255d437641088195b..d4614d43dda8f0b78a05a6be40625d5f8e0c3c27 100644 (file)
@@ -202,8 +202,18 @@ float roundStartTime_prev; // prevent networkspam
 void Arena_Warmup()
 {
        float f;
-    entity e;
+       entity e;
 
+       if(gameover)
+       {
+               if(champion && g_arena)
+               {
+                       FOR_EACH_CLIENT(e)
+                               centerprint(e, strcat("The Champion is ", champion.netname));
+                       champion = world;
+               }
+               return;
+       }
        if((!g_arena && !g_ca && !g_freezetag) || (g_arena && !arena_roundbased) || (time < game_starttime))
                return;