Moved footprint info onto its building.

This commit is contained in:
Bob
2009-10-20 23:55:57 +13:00
parent 6c0ced3e9a
commit cfa56a791d
16 changed files with 607 additions and 385 deletions

View File

@@ -20,14 +20,14 @@ namespace OpenRa.Game
void AddInfluence(Actor a)
{
foreach (var t in Footprint.UnpathableTiles(a.unitInfo.Name, a.Location))
foreach (var t in Footprint.UnpathableTiles(a.unitInfo, a.Location))
if (IsValid(t))
influence[t.X, t.Y] = a;
}
void RemoveInfluence(Actor a)
{
foreach (var t in Footprint.UnpathableTiles(a.unitInfo.Name, a.Location))
foreach (var t in Footprint.UnpathableTiles(a.unitInfo, a.Location))
if (IsValid(t))
influence[t.X, t.Y] = null;
}