1
0
forked from 0ad/0ad

[PetraAI] - Wait when all members of an attack-plan are garrisoned.

Reported by: @Langbart
Differential revision: https://code.wildfiregames.com/D4936
Refs. #6385 by fixing a part of it (the attack plan).

This was SVN commit r27551.
This commit is contained in:
Freagarach 2023-02-17 13:49:01 +00:00
parent d28145a61a
commit 11c9e33d0f

View File

@ -1303,6 +1303,12 @@ PETRA.AttackPlan.prototype.update = function(gameState, events)
if (this.state == "transporting")
this.UpdateTransporting(gameState, events);
if (!this.position)
{
Engine.ProfileStop();
return this.unitCollection.length;
}
if (this.state == "walking" && !this.UpdateWalking(gameState, events))
{
Engine.ProfileStop();