Update territories when a construction is finished

Constructions can change the territories. So they should be updated.
This commit is contained in:
phosit 2025-08-31 17:42:35 +02:00
parent f5e926f6fe
commit 3afdf64eee
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -131,8 +131,11 @@ Headquarters.prototype.checkEvents = function(gameState, events)
{
this.buildManager.checkEvents(gameState, events);
if (events.TerritoriesChanged.length || events.DiplomacyChanged.length)
if (events.TerritoriesChanged.length || events.DiplomacyChanged.length ||
events.ConstructionFinished.length)
{
this.updateTerritories(gameState);
}
for (const evt of events.DiplomacyChanged)
{