From cca2cfe05c5e7b096d268f89e80d49471dd510c0 Mon Sep 17 00:00:00 2001 From: phosit Date: Thu, 18 Sep 2025 14:41:52 +0200 Subject: [PATCH] Don't updateTerritories when deserializing Clients which didn't late-join only get a change to `uptadeTerritories` when the ai playes a turn. When joining clients do it at the turn when they deserialize the ai they might be ahead of the others. That would lead to an out of sync. --- binaries/data/mods/public/simulation/ai/petra/headquarters.js | 1 - 1 file changed, 1 deletion(-) diff --git a/binaries/data/mods/public/simulation/ai/petra/headquarters.js b/binaries/data/mods/public/simulation/ai/petra/headquarters.js index f8b2f22ca8..55d1f2a8d0 100644 --- a/binaries/data/mods/public/simulation/ai/petra/headquarters.js +++ b/binaries/data/mods/public/simulation/ai/petra/headquarters.js @@ -104,7 +104,6 @@ Headquarters.prototype.init = function(gameState, queues) Headquarters.prototype.postinit = function(gameState) { this.basesManager.postinit(gameState); - this.updateTerritories(gameState); }; /**