]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unneeded code and vars of the radar panel
authorterencehill <piuntn@gmail.com>
Sun, 21 Nov 2010 21:07:09 +0000 (22:07 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 21 Nov 2010 21:07:09 +0000 (22:07 +0100)
qcsrc/client/hud.qc

index e89205235e1cd007cffd25783a3512cf76a2ca05..32493f9d7d7b893660bbb85302c4ef6ce0fb64e0 100644 (file)
@@ -3446,8 +3446,7 @@ void HUD_Radar(void)
                mySize -= '2 2 0' * panel_bg_padding;
        }
 
-       local float color1, color2; // color already declared as a global in hud.qc
-       local vector rgb;
+       local float color2;
        local entity tm;
        float scale2d, normalsize, bigsize;
        float f;
@@ -3527,9 +3526,6 @@ void HUD_Radar(void)
                  f * (mi_min + mi_max) * 0.5
                + (1 - f) * view_origin);
 
-       color1 = GetPlayerColor(player_localentnum-1);
-       rgb = GetTeamRGB(color1);
-
        drawsetcliparea(
                pos_x,
                pos_y,