Remove explicit List<Actors> everywhere.

This commit is contained in:
Paul Chote
2013-08-24 10:44:18 +12:00
parent 5d142945eb
commit ea1b5fc89d
3 changed files with 15 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ namespace OpenRA.Mods.RA.AI
return false;
}
protected virtual bool MayBeFlee(Squad squad, Func<List<Actor>, bool> flee)
protected virtual bool MayBeFlee(Squad squad, Func<IEnumerable<Actor>, bool> flee)
{
if (!squad.IsValid)
return false;
@@ -107,7 +107,7 @@ namespace OpenRA.Mods.RA.AI
if (!enemyAroundUnit.Any())
return false;
return flee(enemyAroundUnit.ToList());
return flee(enemyAroundUnit);
}
}
}