summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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();