add IHasLocation
This commit is contained in:
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Cnc
|
||||
public IEnumerable<Renderable> ModifyRender(Actor self, IEnumerable<Renderable> r)
|
||||
{
|
||||
foreach (var c in cargo.Passengers)
|
||||
c.CenterLocation = self.CenterLocation;
|
||||
c.Trait<ITeleportable>().SetPxPosition( c, self.Trait<IHasLocation>().PxPosition );
|
||||
|
||||
return r.Concat(cargo.Passengers.SelectMany(a => a.Render()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user