]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make white arrow indicate player position in the radar, not camera position (they... 317/head
authorterencehill <piuntn@gmail.com>
Sun, 8 May 2016 19:45:28 +0000 (21:45 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 8 May 2016 19:45:28 +0000 (21:45 +0200)
qcsrc/client/hud/panel/radar.qc

index 4a2e7ee2b345165afc75e18399b9c1de8147ab2f..8bbcc29e4ed88f7749a53a01e4737edf872ac381 100644 (file)
@@ -364,11 +364,11 @@ void HUD_Radar()
        });
        AL_EACH(_entcs, e, it != NULL, {
                if (!it.m_entcs_private) continue;
-               if (entcs_is_self(it)) continue;
+               if (it.sv_entnum == current_player) continue;
                color2 = entcs_GetTeam(it.sv_entnum);
                draw_teamradar_player(it.origin, it.angles, Team_ColorRGB(color2));
        });
-       draw_teamradar_player(view_origin, view_angles, '1 1 1');
+       draw_teamradar_player(entcs_receiver(current_player).origin, view_angles, '1 1 1');
 
        drawresetcliparea();