world.NeutralPlayer has been defeated

This commit is contained in:
Paul Chote
2010-05-23 20:26:30 +12:00
parent bbbd65a6eb
commit a6f5b12a55
13 changed files with 20 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA
var hasAnything = self.World.Queries.OwnedBy[self.Owner]
.WithTrait<MustBeDestroyed>().Any();
var hasLost = !hasAnything && self.Owner != self.World.NeutralPlayer;
var hasLost = !hasAnything && !self.Owner.isSpecial;
if (hasLost && !HasLost)
Surrender(self);