From: Mario Date: Tue, 26 Jun 2018 12:03:24 +0000 (+1000) Subject: Don't open the click radar if demo is active (fixes a bug) X-Git-Tag: xonotic-v0.8.5~1980 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a464a8a01110e1c34355fa0496ed9a68455359f4;p=xonotic%2Fxonotic-data.pk3dir.git Don't open the click radar if demo is active (fixes a bug) --- diff --git a/qcsrc/client/commands/cl_cmd.qc b/qcsrc/client/commands/cl_cmd.qc index 034bb6336..1a6a9f884 100644 --- a/qcsrc/client/commands/cl_cmd.qc +++ b/qcsrc/client/commands/cl_cmd.qc @@ -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; } } diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index df0f5d916..214109c97 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -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);