]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If observing force team color to red entering hud config mode
authorterencehill <piuntn@gmail.com>
Wed, 1 May 2013 09:37:28 +0000 (11:37 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 1 May 2013 10:59:50 +0000 (12:59 +0200)
qcsrc/client/hud.qc
qcsrc/client/hud.qh

index bb8a646de23752adf239ec488b70014226287771..1b2be1154f7c014cc1d4abf7868cb8ae40d46ab1 100644 (file)
@@ -4416,7 +4416,10 @@ void HUD_Main (void)
                vector color;
                float hud_dock_color_team = autocvar_hud_dock_color_team;
                if((teamplay) && hud_dock_color_team) {
-                       color = colormapPaletteColor(myteam, 1) * hud_dock_color_team;
+                       if(autocvar__hud_configure && myteam == NUM_SPECTATOR)
+                               color = '1 0 0' * hud_dock_color_team;
+                       else
+                               color = colormapPaletteColor(myteam, 1) * hud_dock_color_team;
                }
                else if(autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && hud_dock_color_team) {
                        color = '1 0 0' * hud_dock_color_team;
index e2dd7ea82e0e9c097744fc4c55ea6a80adfbb134..ef94976dcfec2ffcde6bf26377873d3084f8fb74 100644 (file)
@@ -186,7 +186,10 @@ if(!autocvar__hud_configure && panel_bg_str == "0") {\
 // Get value for panel_bg_color: if "" fetch default, else use panel_bg_color. Convert pants, shirt or teamcolor into a vector.
 #define HUD_Panel_GetColor()\
 if((teamplay) && panel_bg_color_team) {\
-       panel_bg_color = colormapPaletteColor(myteam, 1) * panel_bg_color_team;\
+       if(autocvar__hud_configure && myteam == NUM_SPECTATOR)\
+               panel_bg_color = '1 0 0' * panel_bg_color_team;\
+       else\
+               panel_bg_color = colormapPaletteColor(myteam, 1) * panel_bg_color_team;\
 } else if (autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && panel_bg_color_team) {\
        panel_bg_color = '1 0 0' * panel_bg_color_team;\
 } else {\