Fix the cargo unload regression with scripted transports

The activity is not interruptible, so we'd continue after the Move regardless
This commit is contained in:
abcdefg30
2020-06-29 23:35:29 +02:00
committed by Oliver Brakmann
parent 95809db03c
commit 5e92915095

View File

@@ -699,16 +699,6 @@ namespace OpenRA.Mods.Common.Traits
QueueChild(mobile.VisualMove(self, pos, self.World.Map.CenterOfSubCell(cell, subCell)));
return true;
}
public override void Cancel(Actor self, bool keepQueue = false)
{
// If we are forbidden from stopping in this cell, use evaluateNearestMovableCell
// to nudge us to the nearest cell that we can stop in.
if (!mobile.CanStayInCell(cell))
QueueChild(new Move(self, cell, WDist.Zero, null, true));
base.Cancel(self, keepQueue);
}
}
public Activity MoveToTarget(Actor self, Target target,