From: terencehill Date: Wed, 27 Jan 2016 18:36:31 +0000 (+0100) Subject: Display game start countdown in the infomessages panel when playing too X-Git-Tag: xonotic-v0.8.2~1208^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=19f9cb429f17f1d68a9676f043fc40cdf08fe2ac;p=xonotic%2Fxonotic-data.pk3dir.git Display game start countdown in the infomessages panel when playing too --- 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!");