mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Update territories when a construction is finished
Constructions can change the territories. So they should be updated.
This commit is contained in:
parent
f5e926f6fe
commit
3afdf64eee
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue