If casings are enabled on match start, don't allow to apply changes of cl_casings...
authorterencehill <piuntn@gmail.com>
Fri, 16 Aug 2019 21:09:48 +0000 (23:09 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 16 Aug 2019 21:09:48 +0000 (23:09 +0200)
qcsrc/client/autocvars.qh
qcsrc/common/effects/qc/casings.qc

index 59ecb04..c372be2 100644 (file)
@@ -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;
index 3573444..3045529 100644 (file)
@@ -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);