]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Change around how that last commit works a bit (So it uses the THEMES default border...
authorSamual <samual@xonotic.org>
Fri, 14 Oct 2011 18:47:36 +0000 (14:47 -0400)
committerSamual <samual@xonotic.org>
Fri, 14 Oct 2011 18:47:36 +0000 (14:47 -0400)
qcsrc/client/hud.qc

index 5910f9db7bbf2c33abeb4717ef272dbd99c151c6..fe2e042f82623d8475bb5d397f699f1e8ebc864d 100644 (file)
@@ -2408,16 +2408,9 @@ void HUD_Radar(void)
                panel_size_y = bound(0.2, panel_size_y, 1) * vid_conheight;
                panel_pos_x = (vid_conwidth - panel_size_x) / 2;
                panel_pos_y = (vid_conheight - panel_size_y) / 2;
-               panel_bg = "gfx/hud/default/border_default";
-               /*if(panel_bg == "0") // force a border when maximized
-               {
-                       if(precache_pic(panel_bg) == "") {
-                               panel_bg = strcat(hud_skin_path, "/border_default");
-                               if(precache_pic(panel_bg) == "") {
-                                       panel_bg = "gfx/hud/default/border_default";
-                               }
-                       }
-               }*/
+               
+               panel_bg = strcat(hud_skin_path, "/border_default"); // always use the default border when maximized
+               if(precache_pic(panel_bg) == "") { panel_bg = "gfx/hud/default/border_default"; } // fallback
        }
 
        vector pos, mySize;