]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix infinite rounds if timed out
authorMario <mario.mario@y7mail.com>
Wed, 7 Aug 2013 01:14:48 +0000 (11:14 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 7 Aug 2013 01:14:48 +0000 (11:14 +1000)
qcsrc/server/mutators/gamemode_invasion.qc

index b38a4e2b6d20378afc9232dc494f0349ce86b94a..7b82f8127854c0384c7ab86882ca1f71667bfed2 100644 (file)
@@ -71,6 +71,12 @@ float Invasion_CheckWinner()
                        if(head.iceblock) remove(head.iceblock);
                        remove(head);
                }
+               
+               if(roundcnt >= maxrounds)
+               {
+                       NextLevel();
+                       return 1;
+               }
        
                Send_Notification(NOTIF_ALL, world, MSG_CENTER, CENTER_ROUND_OVER);
                Send_Notification(NOTIF_ALL, world, MSG_INFO, INFO_ROUND_OVER);