fix JS warning in Petra
This was SVN commit r15210.
This commit is contained in:
parent
8589003ac6
commit
874ceb76a5
@ -114,8 +114,6 @@ m.DefenseArmy.prototype.debug = function (gameState)
|
||||
{
|
||||
m.debug(" ");
|
||||
m.debug ("Army " + this.ID)
|
||||
// m.debug ("state " + this.state);
|
||||
// m.debug ("WatchLevel " + this.watchLevel);
|
||||
// m.debug ("Entities " + this.foeEntities.length);
|
||||
// m.debug ("Strength " + this.foeStrength);
|
||||
// debug (gameState.getEntityById(ent)._templateName + ", ID " + ent);
|
||||
|
@ -184,9 +184,6 @@ m.DefenseManager.prototype.checkEnemyArmies = function(gameState, events)
|
||||
for (var p = o+1; p < this.armies.length; ++p)
|
||||
{
|
||||
var otherArmy = this.armies[p];
|
||||
if (otherArmy.state !== army.state)
|
||||
continue;
|
||||
|
||||
if (API3.SquareVectorDistance(army.foePosition, otherArmy.foePosition) < this.armyMergeSize)
|
||||
{
|
||||
// no need to clear here.
|
||||
|
Loading…
Reference in New Issue
Block a user