From: terencehill Date: Mon, 11 Feb 2013 23:18:54 +0000 (+0100) Subject: Forbid toggling ready state if countdown to game start is in progress X-Git-Tag: xonotic-v0.7.0~61^2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7acf8bcae4cda3fb55173754f8f1af55ec96c4f4;p=xonotic%2Fxonotic-data.pk3dir.git Forbid toggling ready state if countdown to game start is in progress --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index dea46bbcb..c357cf689 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -193,6 +193,8 @@ void ClientCommand_ready(float request) // todo: anti-spam for toggling readynes { if(!readyrestart_happened || autocvar_sv_ready_restart_repeatable) { + if(time < game_starttime + 1) // game is already restarting + return; if (self.ready) // toggle { self.ready = FALSE;