]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a bug where a player for some reason couldn't spawn
authorFruitieX <rasse@rasse-laptop.(none)>
Sat, 23 Oct 2010 14:50:49 +0000 (17:50 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Sat, 23 Oct 2010 14:50:49 +0000 (17:50 +0300)
qcsrc/server/arena.qc

index f9b4758c4b52f878e2cce630081ba72bcf4f0382..e0af005737c5ee757b8e7ce5c4bfe477bb6e9fa4 100644 (file)
@@ -207,6 +207,8 @@ void Arena_Warmup()
 
        if(inWarmupStage)
                allowed_to_spawn = 1;
+       if(ca_players < required_ca_players)
+               allowed_to_spawn = 1;
 
        msg = NEWLINES;
        if(time < warmup && !inWarmupStage)
@@ -291,8 +293,6 @@ void Spawnqueue_Check()
                else if(ca_players < required_ca_players) {
                        FOR_EACH_PLAYER(self)
                                centerprint(self, strcat("^1Need at least 1 player in each team to play CA", "^7\n"));
-
-                       allowed_to_spawn = 1;
                        return;
                }
                else if(!next_round) {