Remove WaitForTransport activity.

This commit is contained in:
tovl
2019-07-17 22:15:03 +02:00
committed by teinarss
parent 922c6e9c40
commit 231825d0d0
3 changed files with 2 additions and 52 deletions

View File

@@ -113,15 +113,9 @@ namespace OpenRA.Mods.Common.Activities
var delta = (self.CenterPosition - host.CenterPosition).LengthSquared;
var transport = transportCallers.FirstOrDefault(t => t.MinimumDistance.LengthSquared < delta);
if (transport != null)
{
QueueChild(new WaitForTransport(self, moveActivities));
// TODO: Make this compatible with RepairableNear
transport.RequestTransport(self, targetCell);
}
else
QueueChild(moveActivities);
QueueChild(moveActivities);
return false;
}