mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix formation controller flag reset during patrol
0ace1b44b2 added setting some animation into a controller state,
but formation controllers don't have any animations.
Probably some code intended for individuals has been copied there
by mistake.
This likely caused the visual system to reevaluate the actor somehow
because the animation didn't exist.
Fixes #8817
This commit is contained in:
parent
d29890efb0
commit
56107e4e39
1 changed files with 0 additions and 4 deletions
|
|
@ -1161,16 +1161,12 @@ UnitAI.prototype.UnitFsmSpec = {
|
|||
this.patrolStartPosOrder.targetClasses = this.order.data.targetClasses;
|
||||
this.patrolStartPosOrder.allowCapture = this.order.data.allowCapture;
|
||||
}
|
||||
|
||||
this.SetAnimationVariant("combat");
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
"leave": function()
|
||||
{
|
||||
delete this.patrolStartPosOrder;
|
||||
this.SetDefaultAnimationVariant();
|
||||
},
|
||||
|
||||
"PATROLLING": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue