Remove Do() and replace with foreach()

This commit is contained in:
tomas
2022-08-19 22:15:00 +02:00
committed by abcdefg30
parent 92478a219e
commit ac623d784a
6 changed files with 22 additions and 21 deletions

View File

@@ -85,7 +85,8 @@ namespace OpenRA.Mods.Cnc.Graphics
if (!cache.Any() || length != cachedLength || pos != cachedPos)
cache = GenerateRenderables(wr);
cache.Do(c => c.Render(wr));
foreach (var renderable in cache)
renderable.Render(wr);
}
public Rectangle ScreenBounds(WorldRenderer wr) { return Rectangle.Empty; }