Improve Aircraft TurnSpeed getters readability

This commit is contained in:
reaperrr
2021-06-18 19:20:44 +02:00
committed by Paul Chote
parent 5a548d6acc
commit 0ac277a88d

View File

@@ -265,8 +265,8 @@ namespace OpenRA.Mods.Common.Traits
public WPos CenterPosition { get; private set; }
public CPos TopLeft => self.World.Map.CellContaining(CenterPosition);
public WAngle TurnSpeed => !IsTraitDisabled && !IsTraitPaused ? Info.TurnSpeed : WAngle.Zero;
public WAngle? IdleTurnSpeed => !IsTraitDisabled && !IsTraitPaused ? Info.IdleTurnSpeed : null;
public WAngle TurnSpeed => IsTraitDisabled || IsTraitPaused ? WAngle.Zero : Info.TurnSpeed;
public WAngle? IdleTurnSpeed => IsTraitDisabled || IsTraitPaused ? null : Info.IdleTurnSpeed;
public Actor ReservedActor { get; private set; }
public bool MayYieldReservation { get; private set; }