From: terencehill Date: Sun, 1 Jan 2012 18:35:10 +0000 (+0100) Subject: Do not send the centerprint countdown message when an arena game ends (and there... X-Git-Tag: xonotic-v0.6.0~42^2~7^2~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed565669746780245441f044b65b736343485fc8;p=xonotic%2Fxonotic-data.pk3dir.git Do not send the centerprint countdown message when an arena game ends (and there are at least 3 clients in the server) --- diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc index c89c2b2efa..d4614d43dd 100644 --- a/qcsrc/server/arena.qc +++ b/qcsrc/server/arena.qc @@ -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;