From ed565669746780245441f044b65b736343485fc8 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 1 Jan 2012 19:35:10 +0100 Subject: [PATCH] Do not send the centerprint countdown message when an arena game ends (and there are at least 3 clients in the server) --- qcsrc/server/arena.qc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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; -- 2.39.2