Remove ActorMap.ActorsInWorld.
Prefer the more direct and efficient query on World.Actors instead.
This commit is contained in:
@@ -559,10 +559,5 @@ namespace OpenRA.Traits
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<Actor> ActorsInWorld()
|
||||
{
|
||||
return bins.SelectMany(bin => bin.Actors.Where(actor => actor.IsInWorld));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user