From a75eba1536e2616312ef9047cdf9eb18cd98d587 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Wed, 18 Nov 2020 15:10:16 -0500 Subject: [PATCH] Formatting --- Classic/scripts/autoexec/altWarmup.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Classic/scripts/autoexec/altWarmup.cs b/Classic/scripts/autoexec/altWarmup.cs index c4f7b69..bd79cc1 100644 --- a/Classic/scripts/autoexec/altWarmup.cs +++ b/Classic/scripts/autoexec/altWarmup.cs @@ -21,13 +21,11 @@ function DefaultGame::setupClientTeams(%game) { $Host::warmupTime = $AW::DefaultWarmUpTime; if($HostGamePlayerCount >= $AW::MinALTWarmUpPop && $AW::EnableALTWarmUp && ($CurrentMissionType $= "CTF" || $CurrentMissionType $= "SCtF")) - { %altWarmup = 1; - $Host::warmupTime = $AW::ALTWarmUpTime; - } if(%altWarmup) { + $Host::warmupTime = $AW::ALTWarmUpTime; for(%i = 0; %i < ClientGroup.getCount(); %i ++) { %client = ClientGroup.getObject(%i); @@ -56,6 +54,7 @@ function serverCmdClientJoinTeam(%client, %team, %admin) else %team = 1; } + if(isObject(Game) && Game.kickClient != %client) { if(%client.team != %team)