summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-28 18:33:48 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-28 18:33:48 +0100
commitc7244e3cb3b74c2b31c5680aca1a3e8292e2bf4c (patch)
tree1d7312c683428922ea26f82a75e6839c8c81af51 /core/src/ch/asynk/tankontank/game
parentd8c9dc3bd7e91cfe80a921665c7364a2f6d3054b (diff)
downloadRustAndDust-c7244e3cb3b74c2b31c5680aca1a3e8292e2bf4c.zip
RustAndDust-c7244e3cb3b74c2b31c5680aca1a3e8292e2bf4c.tar.gz
StateMove: self select -> ROTATE
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java
index f7103a8..1aa91e3 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateMove.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java
@@ -99,6 +99,11 @@ public class StateMove extends StateCommon
@Override
public void touchUp()
{
+ if (upHex == activeUnit.getHex()) {
+ ctrl.setState(StateType.ROTATE);
+ return;
+ }
+
int s = map.possiblePaths.size();
Unit unit = upHex.getUnit();