]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fully port cvar_cl_allow_uidtracking handling to REPLICATE (now possible because...
authorterencehill <piuntn@gmail.com>
Thu, 6 Jan 2022 20:54:48 +0000 (21:54 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 6 Jan 2022 20:54:48 +0000 (21:54 +0100)
qcsrc/common/replicate.qh
qcsrc/server/command/getreplies.qc

index cf04d778d6b8330d90ba77eb179639220eb74f63..a8818718b1178527b12f9c44b5c88dc482827948 100644 (file)
@@ -34,6 +34,7 @@ REPLICATE_FIELD(string, cvar_g_xonoticversion);
 REPLICATE(cvar_cl_autoswitch, bool, "cl_autoswitch");
 REPLICATE(cvar_cl_allow_uid2name, int, "cl_allow_uid2name");
 REPLICATE(cvar_cl_allow_uidranking, bool, "cl_allow_uidranking");
+REPLICATE(cvar_cl_allow_uidtracking, int, "cl_allow_uidtracking");
 REPLICATE(cvar_cl_autoscreenshot, int, "cl_autoscreenshot");
 REPLICATE(cvar_cl_autotaunt, float, "cl_autotaunt");
 REPLICATE(cvar_cl_clippedspectating, bool, "cl_clippedspectating");
@@ -55,10 +56,6 @@ REPLICATE(cvar_cl_weapon_switch_fallback_to_impulse, bool, "cl_weapon_switch_fal
 float cvar_cl_newusekeysupported;
 REPLICATE(cvar_cl_newusekeysupported, bool, "cl_newusekeysupported");
 */
-// cvar_cl_allow_uidtracking is handled specially on the server
-#ifdef CSQC
-REPLICATE(cvar_cl_allow_uidtracking, int, "cl_allow_uidtracking");
-#endif
 
 REPLICATE(cvar_cl_weaponpriority, string, "cl_weaponpriority");
 
index 3beabbc419c664867a4ce531c220357d1bd13c0a..c6e967de319de0e9320f988f347f3669fe246051 100644 (file)
@@ -413,8 +413,6 @@ void GetCvars(entity this, entity store, int f)
        GetCvars_handleString_Fixup(this, store, s, f, cvar_cl_weaponpriorities[8], "cl_weaponpriority8", W_FixWeaponOrder_AllowIncomplete);
        GetCvars_handleString_Fixup(this, store, s, f, cvar_cl_weaponpriorities[9], "cl_weaponpriority9", W_FixWeaponOrder_AllowIncomplete);
 
-       GetCvars_handleFloat(this, store, s, f, cvar_cl_allow_uidtracking, "cl_allow_uidtracking");
-
        // fixup of switchweapon (needed for LMS or when spectating is disabled, as PutClientInServer comes too early)
        if (f > 0)
        {