From 3a4031406c577349e0a6eb2d3a95165362120aeb Mon Sep 17 00:00:00 2001 From: freenity Date: Fri, 1 Aug 2008 14:43:05 +0000 Subject: [PATCH] Fixing the problem that when a civil center was destroyed, the settlement was still controlled by that player and not Gaia. This was SVN commit r6307. --- binaries/data/mods/official/scripts/entity_functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binaries/data/mods/official/scripts/entity_functions.js b/binaries/data/mods/official/scripts/entity_functions.js index 98e601df1a..ce7e8e6132 100644 --- a/binaries/data/mods/official/scripts/entity_functions.js +++ b/binaries/data/mods/official/scripts/entity_functions.js @@ -2133,8 +2133,9 @@ function SettlementAura( source ) { if( this.affects( e ) ) { - // If a Civ Centre has entered our radius, it must mean the one on us died; become visible again + // If a Civ Centre has entered our radius, it must mean the one on us died; become visible again and assign it to Gaia. source.visible = true; + source.player = players[0]; //player[0] is allways Gaia. } } }