From cb4562368c1036da341ebb45de0919c0beeedf72 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Thu, 24 Nov 2022 21:54:05 +1000 Subject: [PATCH] Remove command-specific anti spam from ClientCommand_ready() --- qcsrc/server/command/cmd.qc | 3 --- qcsrc/server/command/vote.qh | 1 - 2 files changed, 4 deletions(-) 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) -- 2.39.2