IsSpecial -> NonCombatant

This commit is contained in:
Paul Chote
2010-05-24 14:03:47 +12:00
parent 35ca5f80b2
commit 78455a3dce
8 changed files with 11 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Widgets
if (world.players.Count > 2) /* more than just us + neutral */
{
var conds = world.Queries.WithTrait<IVictoryConditions>()
.Where(c => !c.Actor.Owner.IsSpecial);
.Where(c => !c.Actor.Owner.NonCombatant);
if (conds.Any(c => c.Actor.Owner == world.LocalPlayer && c.Trait.HasLost))
DrawText("YOU ARE DEFEATED");