Moved footprint info onto its building.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user