]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin/terencehill/observer_color', fixes #1444
authorRudolf Polzer <divverent@xonotic.org>
Thu, 21 Mar 2013 16:16:54 +0000 (17:16 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 21 Mar 2013 16:17:01 +0000 (17:17 +0100)
1  2 
qcsrc/client/hud.qc

diff --combined qcsrc/client/hud.qc
index bec60a5e80a0deec87e6d7cbcb7d0d28f52f9e0b,6fb3174790eef1120e878047f1f614a66d1959ed..bf72c2f467bd9b08551278e36b8eb799a47e7d4b
@@@ -526,7 -526,8 +526,7 @@@ void HUD_Weapons(void
                weaponorder_cmp_str = string_null;
        }
  
 -      if(autocvar_hud_panel_weapons_complainbubble)
 -      if(autocvar__hud_configure || time - complain_weapon_time >= when + fadetime)
 +      if(!autocvar_hud_panel_weapons_complainbubble || autocvar__hud_configure || time - complain_weapon_time >= when + fadetime)
                complain_weapon = 0;
  
        // determine which weapons are going to be shown
                weapon_id = self.impulse;
  
                // skip if this weapon doesn't exist
 -              if (!self || self.impulse < 0) { continue; }
 +              if(!self || weapon_id < 0) { continue; }
  
                // skip this weapon if we don't own it (and onlyowned is enabled)-- or if weapons_complainbubble is showing for this weapon
                if(autocvar_hud_panel_weapons_onlyowned)
@@@ -2026,7 -2027,7 +2026,7 @@@ void HUD_Radar(void
        draw_teamradar_player(view_origin, view_angles, '1 1 1');
  
        drawresetcliparea();
 -};
 +}
  
  // Score (#7)
  //
@@@ -4489,8 -4490,7 +4489,7 @@@ void HUD_Main (void
                vector color;
                float hud_dock_color_team = autocvar_hud_dock_color_team;
                if((teamplay) && hud_dock_color_team) {
-                       f = stof(getplayerkeyvalue(current_player - 1, "colors"));
-                       color = colormapPaletteColor(mod(f, 16), 1) * hud_dock_color_team;
+                       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;