From bca28dde8f0bfd2f3cf771d24afb685201b4a561 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 5 Mar 2017 02:21:39 +1000 Subject: [PATCH] Fix radar minimizing when other players re-spawn --- qcsrc/client/hud/panel/radar.qc | 4 ++-- qcsrc/client/main.qc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.39.2