forked from 0ad/0ad
Sheep should no longer be overly fond of trees & rocks.
This was SVN commit r3258.
This commit is contained in:
parent
2d969da879
commit
4de14f47f7
@ -729,7 +729,7 @@ function InfidelityAura ( source )
|
||||
this.source = source;
|
||||
|
||||
this.count = new Array( 9 );
|
||||
for( i = 1; i <= 8; i++ )
|
||||
for( i = 0; i <= 8; i++ )
|
||||
{
|
||||
this.count[i] = 0;
|
||||
}
|
||||
@ -763,7 +763,7 @@ function InfidelityAura ( source )
|
||||
{
|
||||
if( this.count[this.source.player.id] == 0 )
|
||||
{
|
||||
// switch ownership to whoever has the most units near us, if any
|
||||
// switch ownership to whichever non-gaia player has the most units near us, if any
|
||||
bestPlayer = 0;
|
||||
bestCount = 0;
|
||||
for( i = 1; i <= 8; i++ )
|
||||
|
Loading…
Reference in New Issue
Block a user