1
0
forked from 0ad/0ad

fix JS warning in Petra

This was SVN commit r15210.
This commit is contained in:
mimo 2014-05-24 14:52:05 +00:00
parent 8589003ac6
commit 874ceb76a5
2 changed files with 0 additions and 5 deletions

View File

@ -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);

View File

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