Fix #17229: Refactor ReturnToBase.cs
This commit is contained in:
committed by
reaperrr
parent
aa953ba5a1
commit
763e6d8109
@@ -113,10 +113,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
{
|
||||
var exit = dest.FirstExitOrDefault(null);
|
||||
var offset = exit != null ? exit.Info.SpawnOffset : WVec.Zero;
|
||||
if (aircraft.Info.TurnToDock)
|
||||
if (aircraft.Info.TurnToDock || !aircraft.Info.VTOL)
|
||||
facing = aircraft.Info.InitialFacing;
|
||||
if (!aircraft.Info.VTOL)
|
||||
facing = 192;
|
||||
|
||||
aircraft.MakeReservation(dest);
|
||||
QueueChild(new Land(self, Target.FromActor(dest), offset, facing, Color.Green));
|
||||
|
||||
Reference in New Issue
Block a user