1
0
forked from 0ad/0ad

Recompute the cost grid in the TerritoryManager when needed. Patch by s0600204. Fixes #3399, #3400.

This was SVN commit r16990.
This commit is contained in:
leper 2015-09-06 22:35:38 +00:00
parent c1efebab15
commit 5a685b84ca

View File

@ -62,6 +62,7 @@ public:
componentManager.SubscribeGloballyToMessageType(MT_OwnershipChanged);
componentManager.SubscribeGloballyToMessageType(MT_PositionChanged);
componentManager.SubscribeGloballyToMessageType(MT_ValueModification);
componentManager.SubscribeToMessageType(MT_ObstructionMapShapeChanged);
componentManager.SubscribeToMessageType(MT_TerrainChanged);
componentManager.SubscribeToMessageType(MT_WaterChanged);
componentManager.SubscribeToMessageType(MT_Update);
@ -182,6 +183,7 @@ public:
MakeDirty();
break;
}
case MT_ObstructionMapShapeChanged:
case MT_TerrainChanged:
case MT_WaterChanged:
{