Files
OpenRA/OpenRA.Mods.Common/Traits/Render/SelectionDecorations.cs
RoosterDragon a6af65f380 Avoid allocations in SelectionDecorations when we have nothing to draw.
Return an empty enumerable immediately rather than allocating a compiler generated enumerable via 'yield'. We can defer allocating these until we actually need to draw them.

Also, cache the trait lookup.
2017-01-19 20:23:48 +00:00

5.6 KiB