1
0
forked from 0ad/0ad

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.
This commit is contained in:
freenity 2008-08-01 14:43:05 +00:00
parent 1196ed1d45
commit 3a4031406c

View File

@ -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.
}
}
}