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:
Paul Chote
2018-12-25 15:38:09 +13:00
committed by Oliver Brakmann
parent 7184f5f97e
commit b41c178cb9
4 changed files with 0 additions and 67 deletions

View File

@@ -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();