commit fea5215063d12b1b2985a7d8f4fdb32e45cfc189 parent ad2e5e1d47919f10a81b33d49a13ba0ec977e06b Author: Mikolaj Lenczewski <33129490+EnderRifter@users.noreply.github.com> Date: Tue, 2 Jul 2019 07:48:32 +0100 Rotation of view now only uses a range of angles between +0 and +359. Diffstat:
| M | StarSim/StarSimLib/Graphics/Drawer.cs | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/StarSim/StarSimLib/Graphics/Drawer.cs b/StarSim/StarSimLib/Graphics/Drawer.cs @@ -394,15 +394,15 @@ namespace StarSimLib.Graphics break; case RotationDirection.South: - rotation.X -= angle % 360; + rotation.X += 360 - angle % 360; break; case RotationDirection.West: - rotation.Y -= angle % 360; + rotation.Y += 360 - angle % 360; break; case RotationDirection.Clockwise: - rotation.Z -= angle % 360; + rotation.Z += 360 - angle % 360; break; case RotationDirection.Anticlockwise: