From: terencehill Date: Fri, 16 Aug 2019 21:09:48 +0000 (+0200) Subject: If casings are enabled on match start, don't allow to apply changes of cl_casings... X-Git-Tag: xonotic-v0.8.5~1387^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6c2de3fa93af948850424fcb30bfb0a4e878345a;p=xonotic%2Fxonotic-data.pk3dir.git 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) --- 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);