From: terencehill Date: Sun, 8 May 2016 19:45:28 +0000 (+0200) Subject: Make white arrow indicate player position in the radar, not camera position (they... X-Git-Tag: xonotic-v0.8.2~934^2 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F317%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git Make white arrow indicate player position in the radar, not camera position (they don't match in 3rd person view). It also fixes white arrow not shown when inside a vehicle --- diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 4a2e7ee2b..8bbcc29e4 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -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();