summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Orientation.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Orientation.java b/core/src/ch/asynk/tankontank/engine/Orientation.java
index 10fa441..af4c588 100644
--- a/core/src/ch/asynk/tankontank/engine/Orientation.java
+++ b/core/src/ch/asynk/tankontank/engine/Orientation.java
@@ -59,7 +59,7 @@ public enum Orientation
public static Orientation fromSide(int s)
{
- if (s == 1) return NORTH;
+ if (s == NORTH.s) return NORTH;
else if (s == NORTH_EAST.s) return NORTH_EAST;
else if (s == SOUTH_EAST.s) return SOUTH_EAST;
else if (s == SOUTH.s) return SOUTH;