]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Better condition for messages.
authorLyberta <lyberta@lyberta.net>
Thu, 23 Mar 2017 07:43:58 +0000 (10:43 +0300)
committerLyberta <lyberta@lyberta.net>
Thu, 23 Mar 2017 07:43:58 +0000 (10:43 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 254c3e1c9870f03435911857ec2eddcf9cab6eaa..0d626a55f7b81d2c92d70b132b7825429b8fce53 100644 (file)
@@ -589,7 +589,7 @@ void Surv_RemovePlayerFromAliveList(entity player, int t)
                                ftos(surv_numdefendersalive));
                        LOG_TRACE(message);
                        DebugPrintToChatAll(message);
-                       if (warmup_stage)
+                       if (warmup_stage || surv_allowed_to_spawn)
                        {
                                break;
                        }
@@ -657,7 +657,8 @@ void Surv_CountAlivePlayers()
                eliminatedPlayers.SendFlags |= 1;
        }
        Surv_UpdateAliveStats();
-       if (warmup_stage || (savednumdefenders <= surv_numdefendersalive))
+       if (warmup_stage || surv_allowed_to_spawn || (savednumdefenders <=
+               surv_numdefendersalive))
        {
                return;
        }