Mark cells that have changed MovementType as dirty

This commit is contained in:
teinarss
2019-09-29 11:50:45 +02:00
committed by abcdefg30
parent ad02adff3e
commit 9bfc324c04
4 changed files with 15 additions and 2 deletions

View File

@@ -90,12 +90,12 @@ namespace OpenRA.Mods.Common.Traits
protected override void TraitEnabled(Actor self)
{
self.World.ActorMap.UpdatePosition(self, self.OccupiesSpace);
self.World.ActorMap.UpdateOccupiedCells(self.OccupiesSpace);
}
protected override void TraitDisabled(Actor self)
{
self.World.ActorMap.UpdatePosition(self, self.OccupiesSpace);
self.World.ActorMap.UpdateOccupiedCells(self.OccupiesSpace);
}
}
}