tidy GetTargetQueue
This commit is contained in:
@@ -46,7 +46,9 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
public static IEnumerable<Target> GetTargetQueue( this Actor self )
|
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 ) );
|
.SelectMany( u => u.GetTargets( self ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user