From 38e310e1af21dbaf9651bb14a8412cfb509cec88 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 26 Nov 2010 00:08:00 +0100 Subject: [PATCH] HUD_Panel_GetProgressBarColorForString: most often queried items as first cases --- qcsrc/client/hud.qh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2