From 6c2de3fa93af948850424fcb30bfb0a4e878345a Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 16 Aug 2019 23:09:48 +0200 Subject: [PATCH] If casings are enabled on match start, don't allow to apply changes of cl_casings without sending it to the server. With this change, behaviour is now consistent with the other case (casings disabled on match start) --- qcsrc/client/autocvars.qh | 1 - qcsrc/common/effects/qc/casings.qc | 2 -- 2 files changed, 3 deletions(-) diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 59ecb04d2..c372be250 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -25,7 +25,6 @@ float autocvar_cl_announcer_antispam = 2; float autocvar_cl_announcer_maptime = 3; bool autocvar_cl_autodemo_delete; bool autocvar_cl_autodemo_delete_keeprecords; -bool autocvar_cl_casings; float autocvar_cl_casings_bronze_time; int autocvar_cl_casings_maxcount = 100; float autocvar_cl_casings_shell_time; diff --git a/qcsrc/common/effects/qc/casings.qc b/qcsrc/common/effects/qc/casings.qc index 3573444a6..304552961 100644 --- a/qcsrc/common/effects/qc/casings.qc +++ b/qcsrc/common/effects/qc/casings.qc @@ -136,8 +136,6 @@ NET_HANDLE(casings, bool isNew) ang_z = ReadByte() * 360 / 256; return = true; - if (!autocvar_cl_casings) return; - Casing casing = RubbleNew("casing"); casing.silent = (_state & 0x80); casing.state = (_state & 0x7F); -- 2.39.2