From: Mario Date: Sat, 4 Mar 2017 16:21:39 +0000 (+1000) Subject: Fix radar minimizing when other players re-spawn X-Git-Tag: xonotic-v0.8.2~145 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bca28dde8f0bfd2f3cf771d24afb685201b4a561;p=xonotic%2Fxonotic-data.pk3dir.git Fix radar minimizing when other players re-spawn --- diff --git a/qcsrc/client/hud/panel/radar.qc b/qcsrc/client/hud/panel/radar.qc index 3bc537c8f..10b6708e1 100644 --- a/qcsrc/client/hud/panel/radar.qc +++ b/qcsrc/client/hud/panel/radar.qc @@ -8,12 +8,12 @@ // Radar (#6) -float HUD_Radar_Clickable() +bool HUD_Radar_Clickable() { return hud_panel_radar_mouse && !hud_panel_radar_temp_hidden; } -void HUD_Radar_Show_Maximized(bool doshow,float clickable) +void HUD_Radar_Show_Maximized(bool doshow, bool clickable) { TC(bool, doshow); hud_panel_radar_maximized = doshow; diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index a231cd4dc..91254e7ad 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -776,8 +776,8 @@ NET_HANDLE(ENT_CLIENT_SPAWNEVENT, bool is_new) localcmd("-zoom\n"); button_zoom = false; } + HUD_Radar_Hide_Maximized(); } - HUD_Radar_Hide_Maximized(); //printf("Ent_ReadSpawnEvent(is_new = %d); origin = %s, entnum = %d, localentnum = %d\n", is_new, vtos(this.origin), entnum, player_localentnum); }