]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
HUD_Panel_GetProgressBarColorForString: most often queried items as first cases
authorterencehill <piuntn@gmail.com>
Thu, 25 Nov 2010 23:08:00 +0000 (00:08 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 25 Nov 2010 23:08:00 +0000 (00:08 +0100)
qcsrc/client/hud.qh

index 4267f600f9beb7e92c7377f3eec8701436668dde..aaa26067c79b5b29d7108c228ee937ec72c459c9 100644 (file)
@@ -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