slightly faster again

This commit is contained in:
Chris Forbes
2010-07-26 21:39:23 +12:00
parent d774817b0e
commit e0a5350ed6
2 changed files with 22 additions and 20 deletions

View File

@@ -65,6 +65,11 @@ namespace OpenRA.Traits
return influence[ a.X, a.Y ];
}
public bool AnyUnitsAt(int2 a)
{
return map.IsInMap(a) && influence[a.X, a.Y].Count > 0;
}
public void Add( Actor self, IOccupySpace unit )
{
foreach( var c in unit.OccupiedCells() )