tidy GetTargetQueue

This commit is contained in:
Chris Forbes
2011-11-29 11:46:57 +13:00
parent 3d25e59e9e
commit b8c4ff8668

View File

@@ -46,7 +46,9 @@ namespace OpenRA.Traits
{
public static IEnumerable<Target> GetTargetQueue( this Actor self )
{
return self.GetCurrentActivity().Iterate( u => u.NextActivity ).TakeWhile( u => u != null )
return self.GetCurrentActivity()
.Iterate( u => u.NextActivity )
.TakeWhile( u => u != null )
.SelectMany( u => u.GetTargets( self ) );
}
}