]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove command-specific anti spam from ClientCommand_ready()
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 24 Nov 2022 11:54:05 +0000 (21:54 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 6 Jan 2023 07:16:35 +0000 (17:16 +1000)
qcsrc/server/command/cmd.qc
qcsrc/server/command/vote.qh

index 0ee108c7c1cb744fe2509d0ed26860000d407e17..947edd891e96e4b171396a5bc054019bcbd76668 100644 (file)
@@ -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
index e7ca0c87e4918bb1a6169e81c3e67da88ba40d2c..184e502e55e6287f783c0febbb0ed47c6f818e03 100644 (file)
@@ -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)