diff --git a/planet/Objects.ocd/Goals.ocd/Defense.ocd/Script.c b/planet/Objects.ocd/Goals.ocd/Defense.ocd/Script.c index cbadc4e45..03fc55859 100644 --- a/planet/Objects.ocd/Goals.ocd/Defense.ocd/Script.c +++ b/planet/Objects.ocd/Goals.ocd/Defense.ocd/Script.c @@ -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.