]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unused cvar_cl_newusekeysupported field, sort REPLICATE calls
authorterencehill <piuntn@gmail.com>
Thu, 6 Jan 2022 23:57:19 +0000 (00:57 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 7 Jan 2022 18:16:16 +0000 (19:16 +0100)
qcsrc/common/replicate.qh
qcsrc/server/client.qc
qcsrc/server/client.qh

index 2c362be79306fecaccd4adaa3d7fabb100c9ae89..3ee308914f998905ca55b9ae2d7f186a238029fc 100644 (file)
@@ -24,10 +24,6 @@ REPLICATE_FIELD(int, cvar_cl_weaponimpulsemode);
 REPLICATE_FIELD(string, cvar_g_xonoticversion);
 #endif
 
-#ifdef SVQC
-.float cvar_cl_newusekeysupported;
-#endif
-
 #ifdef GAMEQC
 REPLICATE(cvar_cl_autoswitch, bool, "cl_autoswitch");
 REPLICATE(cvar_cl_allow_uid2name, int, "cl_allow_uid2name");
@@ -36,6 +32,7 @@ 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");
+REPLICATE(cvar_cl_cts_noautoswitch, bool, "cl_cts_noautoswitch");
 REPLICATE(cvar_cl_gunalign, int, "cl_gunalign");
 REPLICATE(cvar_cl_handicap, float, "cl_handicap");
 REPLICATE(cvar_cl_jetpack_jump, bool, "cl_jetpack_jump");
@@ -44,15 +41,9 @@ REPLICATE(cvar_cl_noantilag, bool, "cl_noantilag");
 REPLICATE(cvar_cl_physics, string, "cl_physics");
 REPLICATE(cvar_cl_voice_directional, int, "cl_voice_directional");
 REPLICATE(cvar_cl_voice_directional_taunt_attenuation, float, "cl_voice_directional_taunt_attenuation");
-REPLICATE(cvar_cl_weaponimpulsemode, int, "cl_weaponimpulsemode");
-REPLICATE(cvar_g_xonoticversion, string, "g_xonoticversion");
-REPLICATE(cvar_cl_cts_noautoswitch, bool, "cl_cts_noautoswitch");
 REPLICATE(cvar_cl_weapon_switch_reload, bool, "cl_weapon_switch_reload");
 REPLICATE(cvar_cl_weapon_switch_fallback_to_impulse, bool, "cl_weapon_switch_fallback_to_impulse");
-/*
-// cvar cl_newusekeysupported doesn't exist
-float cvar_cl_newusekeysupported;
-REPLICATE(cvar_cl_newusekeysupported, bool, "cl_newusekeysupported");
-*/
+REPLICATE(cvar_cl_weaponimpulsemode, int, "cl_weaponimpulsemode");
+REPLICATE(cvar_g_xonoticversion, string, "g_xonoticversion");
 
 #endif
index edefc0d28b0f72086d11ba12ff75224460716d5d..376182266269f0e32142c99707fe96732ac30155 100644 (file)
@@ -2511,12 +2511,9 @@ void PlayerPreThink (entity this)
                this.last_vehiclecheck = time + 1;
        }
 
-       if(!CS_CVAR(this).cvar_cl_newusekeysupported) // FIXME remove this - it was a stupid idea to begin with, we can JUST use the button
-       {
-               if(PHYS_INPUT_BUTTON_USE(this) && !CS(this).usekeypressed)
-                       PlayerUseKey(this);
-               CS(this).usekeypressed = PHYS_INPUT_BUTTON_USE(this);
-       }
+       if(PHYS_INPUT_BUTTON_USE(this) && !CS(this).usekeypressed)
+               PlayerUseKey(this);
+       CS(this).usekeypressed = PHYS_INPUT_BUTTON_USE(this);
 
        if (IS_REAL_CLIENT(this))
                PrintWelcomeMessage(this);
index fe0d7a8ffa278ee6ff95a428f51adcda79943b04..862bfffbef7a0705f3f342589c25e1317353261a 100644 (file)
@@ -211,7 +211,6 @@ CLASS(Client, Object)
     ATTRIB(Client, cvar_cl_clippedspectating, bool, this.cvar_cl_clippedspectating);
     ATTRIB(Client, cvar_cl_autoscreenshot, int, this.cvar_cl_autoscreenshot);
     ATTRIB(Client, cvar_cl_jetpack_jump, bool, this.cvar_cl_jetpack_jump);
-    ATTRIB(Client, cvar_cl_newusekeysupported, bool, this.cvar_cl_newusekeysupported);
     ATTRIB(Client, cvar_cl_noantilag, bool, this.cvar_cl_noantilag);
     ATTRIB(Client, cvar_cl_movement_track_canjump, bool, this.cvar_cl_movement_track_canjump);
     ATTRIB(Client, cvar_cl_weaponimpulsemode, int, this.cvar_cl_weaponimpulsemode);