Revert "Units that have turrets while deployed now move their turrets back to their initial positions before undeploying"
This reverts commit d34bea293505f152d5f5aae3806dfcf36104945b.
This commit is contained in:
committed by
Oliver Brakmann
parent
7184f5f97e
commit
b41c178cb9
@@ -24,24 +24,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
this.deploy = deploy;
|
||||
}
|
||||
|
||||
protected override void OnFirstRun(Actor self)
|
||||
{
|
||||
var tInfo = self.Info.TraitInfoOrDefault<TurretedInfo>();
|
||||
if (tInfo != null)
|
||||
QueueChild(new WaitForTurretAlignment(self, tInfo.InitialFacing));
|
||||
}
|
||||
|
||||
public override Activity Tick(Actor self)
|
||||
{
|
||||
if (ChildActivity != null)
|
||||
{
|
||||
ActivityUtils.RunActivity(self, ChildActivity);
|
||||
return this;
|
||||
}
|
||||
|
||||
if (IsCanceled)
|
||||
return NextActivity;
|
||||
|
||||
IsInterruptible = false; // must DEPLOY from now.
|
||||
deploy.Undeploy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user