]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forbid toggling ready state if countdown to game start is in progress
authorterencehill <piuntn@gmail.com>
Mon, 11 Feb 2013 23:18:54 +0000 (00:18 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 11 Feb 2013 23:18:54 +0000 (00:18 +0100)
qcsrc/server/command/cmd.qc

index dea46bbcbebbeb26f68b7ffe1da311081bb4223d..c357cf689ccd093d762b6cc7d24658550a2eb4f7 100644 (file)
@@ -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;