Avoid or reduce LINQ allocations required in various areas.

This commit is contained in:
RoosterDragon
2020-10-11 11:46:39 +01:00
committed by abcdefg30
parent da53d5b776
commit bb116034c7
9 changed files with 31 additions and 24 deletions

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.Traits.Render
protected override bool ShouldRender(Actor self)
{
if (!rb.Repairers.Any())
if (rb.Repairers.Count == 0)
return false;
return base.ShouldRender(self);