From: FruitieX Date: Sun, 15 Aug 2010 11:15:51 +0000 (+0300) Subject: bugfix X-Git-Tag: xonotic-v0.1.0preview~358 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c7ca53b31e26c14270328538ec672e2974510ada;p=xonotic%2Fxonotic-data.pk3dir.git bugfix --- diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index 246e14876..e311c66a8 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -114,18 +114,19 @@ if(!autocvar__hud_configure && panel_bg_str == "0") {\ panel_bg = "0";\ } else {\ if(panel_bg_str == "") {\ - panel_bg = autocvar_hud_panel_bg;\ - } else if(panel_bg_str == "0" && autocvar__hud_configure) {\ - panel_bg = autocvar_hud_panel_bg;\ - panel_bg_alpha_str = "0";\ - } else {\ - panel_bg = panel_bg_str;\ + panel_bg_str = autocvar_hud_panel_bg;\ }\ - panel_bg = strcat(hud_skin_path, "/", panel_bg);\ - if(precache_pic(panel_bg) == "") {\ - panel_bg = strcat(hud_skin_path, "/", "border_default");\ + if(panel_bg_str == "0" && !autocvar__hud_configure) {\ + panel_bg = "0";\ + } else {\ + if (panel_bg_str == "0" && autocvar__hud_configure)\ + panel_bg_alpha_str = "0";\ + panel_bg = strcat(hud_skin_path, "/", panel_bg_str);\ if(precache_pic(panel_bg) == "") {\ - panel_bg = strcat("gfx/hud/default/", "border_default");\ + panel_bg = strcat(hud_skin_path, "/", "border_default");\ + if(precache_pic(panel_bg) == "") {\ + panel_bg = strcat("gfx/hud/default/", "border_default");\ + }\ }\ }\ }