Add IMove.MoveOntoTarget interface
In `TraitsInterfaces` we expose offset as WPos instead of CPos. In an upcoming PR we'll translate the same change to yaml.
This commit is contained in:
committed by
Matthias Mailänder
parent
ad683d9226
commit
dc390a7301
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
void INotifyHarvesterAction.MovingToRefinery(Actor self, Actor refineryActor)
|
||||
{
|
||||
var iao = refineryActor.Trait<IAcceptResources>();
|
||||
var location = refineryActor.Location + iao.DeliveryOffset;
|
||||
var location = self.World.Map.CellContaining(iao.DeliveryPosition);
|
||||
foreach (var t in transports)
|
||||
t.RequestTransport(self, location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user