summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-07 20:44:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-07 20:44:21 +0200
commit2fa22466d527d4355066190db28bc64955244023 (patch)
tree9e0625ede5f744f86a5e64a5e85c1755617b1443 /core/src/ch
parentd5d77c2e64d70c3b6e6228d9b4079e258ad29ffd (diff)
downloadRustAndDust-2fa22466d527d4355066190db28bc64955244023.zip
RustAndDust-2fa22466d527d4355066190db28bc64955244023.tar.gz
Orientation: typo
Diffstat (limited to 'core/src/ch')
-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;