]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix macro argument usage
authorterencehill <piuntn@gmail.com>
Sun, 31 Oct 2010 00:21:09 +0000 (02:21 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 31 Oct 2010 00:21:09 +0000 (02:21 +0200)
qcsrc/client/hud.qh

index 8276b30917fc65594ed4250dc38363dd8584561c..c1939332c5264c2791dc24daefe61aa92b78718f 100644 (file)
@@ -88,7 +88,7 @@ var string panel_bg_padding_str;
 // Little help for the poor people who have to make sense of this: Start from the bottom ;)
 
 #define HUD_Panel_GetProgressBarColor(item) \
-               progressbar_color = stov(cvar_string("hud_progressbar_##item##_color"))
+               progressbar_color = stov(cvar_string("hud_progressbar_" #item "_color"))
 #define HUD_Panel_GetProgressBarColorForString(item) \
 switch(item) {\
        case "strength": HUD_Panel_GetProgressBarColor(strength); break;\