]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix radar minimizing when other players re-spawn
authorMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:21:39 +0000 (02:21 +1000)
committerMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:21:39 +0000 (02:21 +1000)
qcsrc/client/hud/panel/radar.qc
qcsrc/client/main.qc

index 3bc537c8f8b5e42760e5ca614ac4e02dadc4ce08..10b6708e1e3f9c1e6c266f1839809a8876add2a9 100644 (file)
@@ -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;
index a231cd4dc42bf8420601f99eff8a18bc9b8b0bbe..91254e7add6b103f0754e4c60175ee74c2594a8e 100644 (file)
@@ -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);
 }