From 7ffdd53abbb3603f11470ddd8104a5944a2d0bbf Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 26 Aug 2016 20:15:55 +0100 Subject: [PATCH] Disable smooth turning for 180 degree turns. --- OpenRA.Mods.Common/Activities/Move/Move.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Activities/Move/Move.cs b/OpenRA.Mods.Common/Activities/Move/Move.cs index 9b316fea46..7fff6ec86e 100644 --- a/OpenRA.Mods.Common/Activities/Move/Move.cs +++ b/OpenRA.Mods.Common/Activities/Move/Move.cs @@ -312,7 +312,8 @@ namespace OpenRA.Mods.Common.Activities MoveFractionTotal = (to - from).Length; // Calculate an elliptical arc that joins from and to - if (fromFacing != toFacing) + var delta = Util.NormalizeFacing(fromFacing - toFacing); + if (delta != 0 && delta != 128) { // The center of rotation is where the normal vectors cross var u = new WVec(1024, 0, 0).Rotate(WRot.FromFacing(fromFacing));