]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display game start countdown in the infomessages panel when playing too
authorterencehill <piuntn@gmail.com>
Wed, 27 Jan 2016 18:36:31 +0000 (19:36 +0100)
committerGitLab <gitlab@gitlab.com>
Sat, 30 Jan 2016 12:27:27 +0000 (12:27 +0000)
qcsrc/client/hud/panel/infomessages.qc

index f8540d3416ae26bbffb26d54838ecde3faece923..4e32fa6628baf9ca31f557c0b8ca48b24f7def9e 100644 (file)
@@ -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!");