From: FruitieX <rasse@rasse-lappy.localdomain>
Date: Wed, 30 Jun 2010 22:12:51 +0000 (+0300)
Subject: macro almost works, i think?!
X-Git-Tag: xonotic-v0.1.0preview~457^2~49
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=14c12805690a0abb33952aeb71e64b1b39097a8e;p=xonotic%2Fxonotic-data.pk3dir.git

macro almost works, i think?!
---

diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh
index 81becfccc8..176aa876c0 100644
--- a/qcsrc/client/hud.qh
+++ b/qcsrc/client/hud.qh
@@ -98,7 +98,7 @@ switch(id) { \
 // comment on last line of macro: // we probably want to see a background in config mode at all times...
 #define HUD_Panel_GetBg()\
 if(!autocvar__hud_configure && panel_bg_str == "0") {\
-	panel_bg = 0;\
+	panel_bg = "0";\
 } else {\
 	if(panel_bg_str == "") {\
 		panel_bg = autocvar_hud_bg;\
@@ -150,7 +150,7 @@ panel_bg_padding = min(min(mySize_x, mySize_y)/2 - 5, panel_bg_padding);
 // Point to the macros above (stupid max macro length)
 #define HUD_Panel_StringVars()\
 HUD_Panel_GetBg()\
-HUD_Panel_GetColorTeam\
+HUD_Panel_GetColorTeam()\
 HUD_Panel_GetBgAlpha()\
 HUD_Panel_GetBorder()\
 HUD_Panel_GetPadding()