forked from Mirrors/openclonk
fulfill defense goal if last active player is removed
parent
b15a8234b1
commit
cb8eb3a4d5
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue