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:
parent
b10b193020
commit
86acba17f0
@ -1332,6 +1332,8 @@ UnitAI.prototype.UnitFsmSpec = {
|
||||
let cmpFormation = Engine.QueryInterface(this.formationController, IID_Formation);
|
||||
if (cmpFormation)
|
||||
cmpFormation.SetInPosition(this.entity);
|
||||
|
||||
delete this.formationOffset;
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user