Remove FlyOffMap.Interruptable. Fixes #906.
This commit is contained in:
@@ -31,8 +31,6 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
|
|
||||||
public class FlyOffMap : Activity
|
public class FlyOffMap : Activity
|
||||||
{
|
{
|
||||||
public bool Interruptible = false;
|
|
||||||
|
|
||||||
public override Activity Tick(Actor self)
|
public override Activity Tick(Actor self)
|
||||||
{
|
{
|
||||||
var targetAltitude = self.Info.Traits.Get<PlaneInfo>().CruiseAltitude;
|
var targetAltitude = self.Info.Traits.Get<PlaneInfo>().CruiseAltitude;
|
||||||
@@ -45,8 +43,7 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
|
|
||||||
public override void Cancel( Actor self )
|
public override void Cancel( Actor self )
|
||||||
{
|
{
|
||||||
if (Interruptible)
|
base.Cancel(self);
|
||||||
base.Cancel(self);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
if (someBuilding == null)
|
if (someBuilding == null)
|
||||||
{
|
{
|
||||||
// ... going down the garden to eat worms ...
|
// ... going down the garden to eat worms ...
|
||||||
self.QueueActivity(new FlyOffMap() { Interruptible = true });
|
self.QueueActivity(new FlyOffMap());
|
||||||
self.QueueActivity(new RemoveSelf());
|
self.QueueActivity(new RemoveSelf());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
{
|
{
|
||||||
public void TickIdle(Actor self)
|
public void TickIdle(Actor self)
|
||||||
{
|
{
|
||||||
self.QueueActivity(new FlyOffMap() { Interruptible = true });
|
self.QueueActivity(new FlyOffMap());
|
||||||
self.QueueActivity(new RemoveSelf());
|
self.QueueActivity(new RemoveSelf());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user