diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-04 01:49:29 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-04 01:49:29 +0200 |
commit | 819788ddd1842755253d723416affd47f1a236af (patch) | |
tree | 7a29dc7a3d6f89cc58ad726de936dd08b38f2b36 /core/src/ch/asynk | |
parent | 0fdbab66ee2fb45e018ea4efd090e01bac01fddb (diff) | |
download | RustAndDust-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.java | 4 |
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; } } } |