From: Samual <samual@xonotic.org>
Date: Fri, 14 Oct 2011 18:41:23 +0000 (-0400)
Subject: Force hud_panel_radar_maximized to always have the default background image (instead... 
X-Git-Tag: xonotic-v0.6.0~40^2~41^2^2~2
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7ed08ed994c7513656d98703ec2e832f2957374f;p=xonotic%2Fxonotic-data.pk3dir.git

Force hud_panel_radar_maximized to always have the default background image (instead of the per-theme image, which looks very bad with default luminos theme.)
---

diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc
index d223181c3..5910f9db7 100644
--- a/qcsrc/client/hud.qc
+++ b/qcsrc/client/hud.qc
@@ -2408,7 +2408,8 @@ 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;
-		if(panel_bg == "0") // force a border when maximized
+		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");
@@ -2416,7 +2417,7 @@ void HUD_Radar(void)
 					panel_bg = "gfx/hud/default/border_default";
 				}
 			}
-		}
+		}*/
 	}
 
 	vector pos, mySize;