From: terencehill Date: Thu, 25 Nov 2010 23:08:00 +0000 (+0100) Subject: HUD_Panel_GetProgressBarColorForString: most often queried items as first cases X-Git-Tag: xonotic-v0.5.0~385 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=38e310e1af21dbaf9651bb14a8412cfb509cec88;p=xonotic%2Fxonotic-data.pk3dir.git HUD_Panel_GetProgressBarColorForString: most often queried items as first cases --- diff --git a/qcsrc/client/hud.qh b/qcsrc/client/hud.qh index 4267f600f..aaa26067c 100644 --- a/qcsrc/client/hud.qh +++ b/qcsrc/client/hud.qh @@ -93,10 +93,10 @@ var string panel_bg_padding_str; progressbar_color = stov(cvar_string("hud_progressbar_" #item "_color")) #define HUD_Panel_GetProgressBarColorForString(item) \ switch(item) {\ - case "strength": HUD_Panel_GetProgressBarColor(strength); break;\ - case "shield": HUD_Panel_GetProgressBarColor(shield); break;\ case "health": HUD_Panel_GetProgressBarColor(health); break;\ case "armor": HUD_Panel_GetProgressBarColor(armor); break;\ + case "strength": HUD_Panel_GetProgressBarColor(strength); break;\ + case "shield": HUD_Panel_GetProgressBarColor(shield); break;\ case "fuel": HUD_Panel_GetProgressBarColor(fuel); break;\ case "nexball": HUD_Panel_GetProgressBarColor(nexball); break;\ } ENDS_WITH_CURLY_BRACE