From: terencehill Date: Sun, 31 Oct 2010 00:21:09 +0000 (+0200) Subject: Fix macro argument usage X-Git-Tag: xonotic-v0.1.0preview~134^2~6^2~22 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af8ea0f33a1e9eafbed0a600e2071a6dd974c230;p=xonotic%2Fxonotic-data.pk3dir.git Fix macro argument usage --- diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index 8276b3091..c1939332c 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -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;\