]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure centerprint panel isn't empty right on hud editor enter
authorterencehill <piuntn@gmail.com>
Wed, 6 Jul 2016 17:55:53 +0000 (19:55 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 6 Jul 2016 17:55:53 +0000 (19:55 +0200)
qcsrc/client/hud/panel/centerprint.qc

index afda329838c623f9d1e8b98712de71b82d8f5014..e998c0883fdc7cc9904fdedc3cfd4ad23b6ad0b1 100644 (file)
@@ -128,7 +128,10 @@ void HUD_CenterPrint ()
        else
        {
                if(!hud_configure_prev)
+               {
                        reset_centerprint_messages();
+                       hud_configure_cp_generation_time = time; // show a message immediately
+               }
                if (time > hud_configure_cp_generation_time)
                {
                        if(highlightedPanel == HUD_PANEL(CENTERPRINT))