Deathmatch goal ends game when all but one player (or team) leave (#893).

heavy-resources
Clonkonaut 2014-05-02 00:01:21 +02:00
parent bf0d6b7176
commit 964e1a138a
1 changed files with 2 additions and 1 deletions

View File

@ -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++)
{