Change IFacing.TurnSpeed to WAngle.

This commit is contained in:
Paul Chote
2020-06-03 18:01:15 +01:00
committed by teinarss
parent 6adf45bcb4
commit 803b930405
8 changed files with 18 additions and 18 deletions

View File

@@ -20,13 +20,13 @@ namespace OpenRA.Mods.Common.Activities
{
readonly Aircraft aircraft;
readonly INotifyIdle[] tickIdles;
readonly int turnSpeed;
readonly WAngle turnSpeed;
int remainingTicks;
public FlyIdle(Actor self, int ticks = -1, bool tickIdle = true)
{
aircraft = self.Trait<Aircraft>();
turnSpeed = aircraft.IdleTurnSpeed > -1 ? aircraft.IdleTurnSpeed : aircraft.TurnSpeed;
turnSpeed = aircraft.IdleTurnSpeed ?? aircraft.TurnSpeed;
remainingTicks = ticks;
if (tickIdle)