fix 'Neutral has been defeated' crap

This commit is contained in:
Chris Forbes
2010-04-23 21:59:19 +12:00
parent 77b88729e6
commit 6249bbd897

View File

@@ -42,10 +42,12 @@ namespace OpenRA.Traits
var hasAnything = self.World.Queries.OwnedBy[self.Owner]
.WithTrait<MustBeDestroyed>().Any();
if (!hasAnything && !HasLost)
var hasLost = !hasAnything && self.Owner != self.World.NeutralPlayer;
if (hasLost && !HasLost)
Game.Debug("{0} is defeated.".F(self.Owner.PlayerName));
HasLost = !hasAnything;
HasLost = hasLost;
}
}