]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Radar: Don't draw the player we are spectating
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 18 Mar 2012 22:09:24 +0000 (00:09 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 18 Mar 2012 22:09:24 +0000 (00:09 +0200)
data/qcsrc/client/radar.qc

index dd766b7d0bc3f2fb4255402c3c769fa9c48d04b8..a7cd6304446679f0d3ec0e30cc8f04b10baa5af4 100644 (file)
@@ -386,6 +386,7 @@ void() radar_view =
        {\r
                col = GetPlayerColor(tm.sv_entnum);\r
                if(cvar("cl_radar_players") > 1 || (cvar("cl_radar_players") > 0 && teamplay && GetPlayerColor(player_localentnum - 1) == col))\r
+               if not(tm.sv_entnum == spectatee_status - 1) // don't show the player we are spectating, since we also draw ourself separately\r
                if not(tm.eaten) // don't show prey on the radar\r
                        draw_radar_player(tm.origin, tm.angles, GetTeamRGB(col));\r
        }\r