From 0ac277a88def4f7d5b7d9e0c7dad15fde11c43f6 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 18 Jun 2021 19:20:44 +0200 Subject: [PATCH] Improve Aircraft TurnSpeed getters readability --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 84b1d31aad..b05d8cdfef 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -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; }