forked from Mirrors/openclonk
Deathmatch goal ends game when all but one player (or team) leave (#893).
parent
bf0d6b7176
commit
964e1a138a
|
@ -91,7 +91,8 @@ public func IsFulfilled()
|
|||
if(GetKillCount(GetPlayerByIndex(i)) >= maxkills)
|
||||
winner = GetPlayerByIndex(i);
|
||||
if (winner == nil)
|
||||
return false;
|
||||
// Otherwise just check if there are no enemies
|
||||
return Goal_Melee->IsFulfilled();
|
||||
// Eliminate all players, that are not in a team with one of the winners
|
||||
for (var i = 0; i < GetPlayerCount(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue