petra: remove a useless break

This was SVN commit r20722.
This commit is contained in:
mimo
2017-12-29 14:37:53 +00:00
parent 094d408fa4
commit 05f0fadd16
2 changed files with 5 additions and 8 deletions
@@ -1801,13 +1801,10 @@ m.AttackPlan.prototype.UpdateWalking = function(gameState, events)
this.state = "arrived";
return true;
}
else // abort plan
{
if (this.Config.debug > 1)
API3.warn("Attack Plan " + this.type + " " + this.name + " has met walls and gives up.");
return false;
}
break;
// abort plan
if (this.Config.debug > 1)
API3.warn("Attack Plan " + this.type + " " + this.name + " has met walls and gives up.");
return false;
}
//this.unitCollection.move(this.path[0][0], this.path[0][1]);
@@ -829,7 +829,7 @@ m.BaseManager.prototype.assignToFoundations = function(gameState, noRepair)
for (let target of damagedBuildings.values())
{
// Don't repair if we're still under attack, unless it's a vital (civcentre or wall) building
// Don't repair if we're still under attack, unless it's a vital (civcentre or wall) building
// that's being destroyed.
if (gameState.ai.HQ.isNearInvadingArmy(target.position()))
if (target.healthLevel() > 0.5 ||