Clean up actor selection in WorldInteractionControllerWidget.

This commit is contained in:
Paul Chote
2014-03-09 12:33:49 +13:00
parent ea6f76e4f6
commit bbd1331536
2 changed files with 15 additions and 7 deletions

View File

@@ -206,5 +206,11 @@ namespace OpenRA.Traits
}
}
}
public IEnumerable<Actor> ActorsInWorld()
{
return actors.SelectMany(a => a.Where(b => b.IsInWorld))
.Distinct();
}
}
}