mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 07:32:45 +00:00
petra: remove a useless break
This was SVN commit r20722.
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user