Files
OpenRA/OpenRA.Mods.Common/Traits/AutoTarget.cs
RoosterDragon 0555ce9321 Reduce allocations in AutoTarget.ChooseTarget.
- Cache active target query.
- Prefer .Count == 0 over Any when working with Lists.
- Use helper for GetEnabledTargetTypes.
- Don't declare target variable until actually needed.
2018-03-21 01:08:59 -03:00

11 KiB