forked from mirrors/0ad
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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user