From 19f9cb429f17f1d68a9676f043fc40cdf08fe2ac Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 27 Jan 2016 19:36:31 +0100 Subject: [PATCH] Display game start countdown in the infomessages panel when playing too --- qcsrc/client/hud/panel/infomessages.qc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcsrc/client/hud/panel/infomessages.qc b/qcsrc/client/hud/panel/infomessages.qc index f8540d341..4e32fa662 100644 --- a/qcsrc/client/hud/panel/infomessages.qc +++ b/qcsrc/client/hud/panel/infomessages.qc @@ -94,16 +94,16 @@ void HUD_InfoMessages() else s = sprintf(_("^1Press ^3%s^1 to join"), getcommandkey("jump", "+jump")); drawInfoMessage(s); + } - //show restart countdown: - if (time < STAT(GAMESTARTTIME)) { - float countdown; - //we need to ceil, otherwise the countdown would be off by .5 when using round() - countdown = ceil(STAT(GAMESTARTTIME) - time); - s = sprintf(_("^1Game starts in ^3%d^1 seconds"), countdown); - drawInfoMessage(s); - } + if (time < STAT(GAMESTARTTIME)) + { + //we need to ceil, otherwise the countdown would be off by .5 when using round() + float countdown = ceil(STAT(GAMESTARTTIME) - time); + s = sprintf(_("^1Game starts in ^3%d^1 seconds"), countdown); + drawInfoMessage(s); } + if(warmup_stage && !intermission) { s = _("^2Currently in ^1warmup^2 stage!"); -- 2.39.2