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

@@ -159,8 +159,11 @@ namespace OpenRA.Mods.Common.Traits
var oldValue = movementTypes;
movementTypes = value;
if (value != oldValue)
{
self.World.ActorMap.UpdateOccupiedCells(self.OccupiesSpace);
foreach (var n in notifyMoving)
n.MovementTypeChanged(self, value);
}
}
}
#endregion