mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:44:08 +00:00
Update territories when a construction is finished
Constructions can change the territories. So they should be updated.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user