fulfill defense goal if last active player is removed

install-platforms
Maikel de Vries 2018-01-11 20:24:16 +01:00
parent b15a8234b1
commit cb8eb3a4d5
1 changed files with 9 additions and 0 deletions

View File

@ -99,6 +99,15 @@ public func RelaunchPlayer(int plr)
return;
}
public func RemovePlayer(int plr)
{
if (GetPlayerType(plr) == C4PT_User)
if (RemoveArrayValue(plrs_active, GetPlayerID(plr)))
if (GetLength(plrs_active) == 0)
EndRound();
return;
}
public func EndRound()
{
// Set evaluation data.