summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-04 01:49:29 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-04 01:49:29 +0200
commit819788ddd1842755253d723416affd47f1a236af (patch)
tree7a29dc7a3d6f89cc58ad726de936dd08b38f2b36 /core/src/ch/asynk
parent0fdbab66ee2fb45e018ea4efd090e01bac01fddb (diff)
downloadRustAndDust-819788ddd1842755253d723416affd47f1a236af.zip
RustAndDust-819788ddd1842755253d723416affd47f1a236af.tar.gz
Orientation: fix fromMove(...)
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Orientation.java4
1 files 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;
}
}
}