}
}
-void ClientCommand_ready(entity caller, int request) // todo: anti-spam for toggling readyness
+void ClientCommand_ready(entity caller, int request)
{
switch (request)
{
case CMD_REQUEST_COMMAND:
{
- if (IS_CLIENT(caller))
+ if (IS_CLIENT(caller) && caller.last_ready < time - 3)
{
if (warmup_stage || g_race_qualifying == 2)
{
bprint(playername(caller.netname, caller.team, false), "^2 is ready\n");
}
+ caller.last_ready = time;
+
// cannot reset the game while a timeout is active!
if (!timeout_status) ReadyCount();
}