]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't open the click radar if demo is active (fixes a bug)
authorMario <mario@smbclan.net>
Tue, 26 Jun 2018 12:03:24 +0000 (22:03 +1000)
committerMario <mario@smbclan.net>
Tue, 26 Jun 2018 12:03:24 +0000 (22:03 +1000)
qcsrc/client/commands/cl_cmd.qc
qcsrc/common/vehicles/sv_vehicles.qc

index 034bb6336680e7ead16421fcaf5fba0c8f78d69c..1a6a9f88419d8cccc098c2fb78f6e925dc9bf5b7 100644 (file)
@@ -325,7 +325,8 @@ void LocalCommand_hud(int request, int argc)
 
                                case "clickradar":
                                {
-                                       HUD_Radar_Show_Maximized(!hud_panel_radar_mouse, 1);
+                                       if(!isdemo())
+                                               HUD_Radar_Show_Maximized(!hud_panel_radar_mouse, 1);
                                        return;
                                }
                        }
index df0f5d91693946c7230fb95d37f0dfb6b773aecd..214109c97b5fcbb8a45e4f73ddc46972b065f6c5 100644 (file)
@@ -811,7 +811,6 @@ void vehicles_exit(entity vehic, bool eject)
 
        vehicles_exit_running = true;
 
-       // TODO: this was in an IS_CLIENT check, make sure it isn't actually needed!
        if(vehic.vehicle_flags & VHF_PLAYERSLOT)
        {
                vehic.vehicle_exit(vehic, eject);