Convert IFacing.Facing and TurnSpeed to WAngle.
This commit is contained in:
@@ -170,7 +170,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
QueueChild(new FlyAttackRun(self, target, lastVisibleMaximumRange));
|
||||
|
||||
// Turn to face the target if required.
|
||||
else if (!attackAircraft.TargetInFiringArc(self, target, attackAircraft.Info.FacingTolerance))
|
||||
else if (!attackAircraft.TargetInFiringArc(self, target, 4 * attackAircraft.Info.FacingTolerance))
|
||||
aircraft.Facing = Util.TickFacing(aircraft.Facing, desiredFacing, aircraft.TurnSpeed);
|
||||
|
||||
return false;
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
if (desiredFacing.HasValue && desiredFacing.Value != aircraft.Facing)
|
||||
{
|
||||
QueueChild(new Turn(self, desiredFacing.Value.Facing));
|
||||
QueueChild(new Turn(self, desiredFacing.Value));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user