]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 59ecb04d2386ec64ad765cda87703eccba9550ab..c372be250b5ad0dae82b4b642bdc3c1d32b4e40a 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 3573444a6ea004c0bd57cbc79a2be071a38494d7..304552961c1a4a5ce1af56b8ee11f77de1ad7cf4 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);