From: bones_was_here Date: Thu, 24 Nov 2022 11:54:05 +0000 (+1000) Subject: Remove command-specific anti spam from ClientCommand_ready() X-Git-Tag: xonotic-v0.8.6~179^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb4562368c1036da341ebb45de0919c0beeedf72;p=xonotic%2Fxonotic-data.pk3dir.git Remove command-specific anti spam from ClientCommand_ready() --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 0ee108c7c..947edd891 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -353,7 +353,6 @@ void ClientCommand_ready(entity caller, int request) { case CMD_REQUEST_COMMAND: { - if (IS_CLIENT(caller) && caller.last_ready < time - 3) if (warmup_stage || g_race_qualifying == 2) if (IS_PLAYER(caller) || INGAME_JOINED(caller)) { @@ -367,8 +366,6 @@ void ClientCommand_ready(entity caller, int request) caller.ready = true; bprint(playername(caller.netname, caller.team, false), "^2 is ready\n"); } - - caller.last_ready = time; ReadyCount(); } return; // never fall through to usage diff --git a/qcsrc/server/command/vote.qh b/qcsrc/server/command/vote.qh index e7ca0c87e..184e502e5 100644 --- a/qcsrc/server/command/vote.qh +++ b/qcsrc/server/command/vote.qh @@ -64,7 +64,6 @@ const float RESTART_COUNTDOWN = 10; entity nagger; int readycount; // amount of players who are ready .bool ready; // flag for if a player is ready -.float last_ready; // last ready time for anti-spam .int team_saved; // team number to restore upon map reset .void(entity this) reset; // if set, an entity is reset using this .void(entity this) reset2; // if set, an entity is reset using this (after calling ALL the reset functions for other entities)