Added "PERF: Avoid LINQ." comments.

This commit is contained in:
RoosterDragon
2015-12-12 21:05:13 +00:00
parent d0c23ef2dd
commit 21292061f9
5 changed files with 10 additions and 0 deletions

View File

@@ -132,6 +132,7 @@ namespace OpenRA.GameRules
if (!IsValidTarget(targetTypes))
return false;
// PERF: Avoid LINQ.
foreach (var warhead in Warheads)
if (warhead.IsValidAgainst(victim, firedBy))
return true;