]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix font issues coming from the weapons panel
authorterencehill <piuntn@gmail.com>
Mon, 18 Feb 2013 11:40:32 +0000 (12:40 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 18 Feb 2013 11:40:32 +0000 (12:40 +0100)
qcsrc/client/hud.qc

index 49beadb1e02b8f5197b97e3cd5074deef18d2422..77516699ef58da836c9b428b1e9a90b311ba52c0 100644 (file)
@@ -542,7 +542,11 @@ void HUD_Weapons(void)
                        ++weapon_count;
 
                // might as well commit suicide now, no reason to live ;)
-               if (weapon_count == 0) { return; }
+               if (weapon_count == 0)
+               {
+                       draw_endBoldFont();
+                       return;
+               }
 
                old_panel_size = panel_size;
                if(panel_bg_padding)
@@ -667,7 +671,10 @@ void HUD_Weapons(void)
        HUD_Panel_DrawBg(1);
 
        if(center_x == -1)
+       {
+               draw_endBoldFont();
                return;
+       }
 
        if(panel_bg_padding)
        {