Fix formation-walking infinite loop introduced in b807c39e6a

b807c39e6a Introduced a infinite loop in which formation members keep
receiving the order to formation walk to their proper position. This was
due to this.formationOffset is not deleted when member gets in offset
position, what means he recieved motion update and it was not because of
failure.

Patch by: @Freagarach
Differential Revision: https://code.wildfiregames.com/D2424
This was SVN commit r23217.
This commit is contained in:
Angen 2019-12-07 13:21:08 +00:00
parent b10b193020
commit 86acba17f0

View File

@ -1332,6 +1332,8 @@ UnitAI.prototype.UnitFsmSpec = {
let cmpFormation = Engine.QueryInterface(this.formationController, IID_Formation);
if (cmpFormation)
cmpFormation.SetInPosition(this.entity);
delete this.formationOffset;
},
},