Fix harvesters losing their last harvesting position when carried by carryall.

This commit is contained in:
tovl
2019-07-15 20:01:20 +02:00
committed by teinarss
parent d59b01597a
commit 922c6e9c40
16 changed files with 39 additions and 37 deletions

View File

@@ -29,18 +29,18 @@ namespace OpenRA.Mods.Common.Traits
transports = self.TraitsImplementing<ICallForTransport>().ToArray();
}
void INotifyHarvesterAction.MovingToResources(Actor self, CPos targetCell, Activity next)
void INotifyHarvesterAction.MovingToResources(Actor self, CPos targetCell)
{
foreach (var t in transports)
t.RequestTransport(self, targetCell, next);
t.RequestTransport(self, targetCell);
}
void INotifyHarvesterAction.MovingToRefinery(Actor self, Actor refineryActor, Activity next)
void INotifyHarvesterAction.MovingToRefinery(Actor self, Actor refineryActor)
{
var iao = refineryActor.Trait<IAcceptResources>();
var location = refineryActor.Location + iao.DeliveryOffset;
foreach (var t in transports)
t.RequestTransport(self, location, next);
t.RequestTransport(self, location);
}
void INotifyHarvesterAction.MovementCancelled(Actor self)