From a27f8bb478b29c6d219a4fa48c9343bf8a3b03d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 6 Oct 2014 00:03:31 +0200 Subject: Orientation.fromMove: return KEEP if dx== 0 && dy==0 --- core/src/ch/asynk/tankontank/engine/Orientation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/ch/asynk/tankontank/engine/Orientation.java b/core/src/ch/asynk/tankontank/engine/Orientation.java index 8ba9388..36cb500 100644 --- a/core/src/ch/asynk/tankontank/engine/Orientation.java +++ b/core/src/ch/asynk/tankontank/engine/Orientation.java @@ -86,6 +86,7 @@ public enum Orientation int dy = row1 - row0; if (dy == 0) { + if (dx == 0) return Orientation.KEEP; if (dx > 0) return Orientation.NORTH; return Orientation.SOUTH; } -- cgit v1.1-2-g2b99