Add missing self and optional pretick parameters to Queue, QueueChild and PrintActivity methods.
This means sequenceActivities needs to accept self as well.
This commit is contained in:
@@ -36,10 +36,10 @@ namespace OpenRA.Mods.Common.Activities
|
||||
protected override void OnFirstRun(Actor self)
|
||||
{
|
||||
if (self.Info.HasTraitInfo<IFacingInfo>())
|
||||
QueueChild(new Turn(self, Facing));
|
||||
QueueChild(self, new Turn(self, Facing));
|
||||
|
||||
if (self.Info.HasTraitInfo<AircraftInfo>())
|
||||
QueueChild(new HeliLand(self, true));
|
||||
QueueChild(self, new HeliLand(self, true));
|
||||
}
|
||||
|
||||
public override Activity Tick(Actor self)
|
||||
@@ -71,7 +71,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
IsInterruptible = false;
|
||||
|
||||
// Wait forever
|
||||
QueueChild(new WaitFor(() => false));
|
||||
QueueChild(self, new WaitFor(() => false));
|
||||
makeAnimation.Reverse(self, () => DoTransform(self));
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user