Let docking angle be determined by the host building.
This commit is contained in:
@@ -111,9 +111,12 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (ShouldLandAtBuilding(self, dest))
|
||||
{
|
||||
var exit = dest.FirstExitOrDefault();
|
||||
var offset = exit != null ? exit.Info.SpawnOffset : WVec.Zero;
|
||||
if (aircraft.Info.TurnToDock || !aircraft.Info.VTOL)
|
||||
facing = aircraft.Info.InitialFacing;
|
||||
var offset = WVec.Zero;
|
||||
if (exit != null)
|
||||
{
|
||||
offset = exit.Info.SpawnOffset;
|
||||
facing = exit.Info.Facing;
|
||||
}
|
||||
|
||||
aircraft.MakeReservation(dest);
|
||||
QueueChild(new Land(self, Target.FromActor(dest), offset, facing, Color.Green));
|
||||
|
||||
Reference in New Issue
Block a user