]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
woo finally it passes the first call to the macro \o/
authorFruitieX <rasse@rasse-lappy.localdomain>
Wed, 30 Jun 2010 22:21:12 +0000 (01:21 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Wed, 30 Jun 2010 22:21:12 +0000 (01:21 +0300)
qcsrc/client/hud.qh

index 176aa876c03f90038c96613c0ebac2e62713615c..0a9f2e046789d8ff2002db9aff71237fc3807751 100644 (file)
@@ -119,7 +119,7 @@ if(panel_bg_color_team_str == "") {\
 // comment on line 3 of macro: // do not set a minalpha cap when showing the config dialog for this panel
 #define HUD_Panel_GetBgAlpha()\
 if(panel_bg_alpha_str == "") {\
-       panel_bg_alpha_str = autocvar_hud_bg_alpha;\
+       panel_bg_alpha_str = ftos(autocvar_hud_bg_alpha);\
 }\
 panel_bg_alpha = stof(panel_bg_alpha_str);\
 if(autocvar__hud_configure && disable_menu_alphacheck == 2 && highlightedPanel == active_panel) {\
@@ -140,7 +140,7 @@ if(panel_bg_border_str == "") {\
 }
 
 #define HUD_Panel_GetPadding()\
-if(panel_bg_border_padding == "") {\
+if(panel_bg_padding_str == "") {\
        panel_bg_padding = autocvar_hud_bg_padding;\
 } else {\
        panel_bg_padding = stof(panel_bg_padding_str);\