From: FruitieX <rasse@rasse-laptop.(none)>
Date: Sat, 23 Oct 2010 14:50:49 +0000 (+0300)
Subject: fix a bug where a player for some reason couldn't spawn
X-Git-Tag: xonotic-v0.1.0preview~245^2~8^2~9
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6347b80ca82e5d37fa24b84fd387fb38dc487b8c;p=xonotic%2Fxonotic-data.pk3dir.git

fix a bug where a player for some reason couldn't spawn
---

diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc
index f9b4758c4..e0af00573 100644
--- a/qcsrc/server/arena.qc
+++ b/qcsrc/server/arena.qc
@@ -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) {