From 819788ddd1842755253d723416affd47f1a236af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 4 Oct 2014 01:49:29 +0200 Subject: Orientation: fix fromMove(...) --- core/src/ch/asynk/tankontank/engine/Orientation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Orientation.java b/core/src/ch/asynk/tankontank/engine/Orientation.java index d985b9c..8ba9388 100644 --- a/core/src/ch/asynk/tankontank/engine/Orientation.java +++ b/core/src/ch/asynk/tankontank/engine/Orientation.java @@ -93,8 +93,8 @@ public enum Orientation if (dx > 0) return Orientation.NORTH_WEST; return Orientation.SOUTH_WEST; } else { - if (dx > 0) return Orientation.NORTH_EAST; - return Orientation.SOUTH_EAST; + if (dx < 0) return Orientation.SOUTH_EAST; + return Orientation.NORTH_EAST; } } } -- cgit v1.1-2-g2b99