summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-29 02:34:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-29 02:34:14 +0100
commitc2ff68f2c67d08dbf2b62b26e532e98676584654 (patch)
treefb49101f476a25975ca04c9ffbcab434eb3e8553 /core/src/ch/asynk/tankontank
parenteae09d2d420e226795b08085afe2cc3c28cd6120 (diff)
downloadRustAndDust-c2ff68f2c67d08dbf2b62b26e532e98676584654.zip
RustAndDust-c2ff68f2c67d08dbf2b62b26e532e98676584654.tar.gz
StateRotate: do not show ABORT button if only 1 unit is moveable
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateRotate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateRotate.java b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
index 8b53221..f15b360 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateRotate.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateRotate.java
@@ -14,7 +14,7 @@ public class StateRotate extends StateCommon
@Override
public void enter(StateType prevState)
{
- ctrl.hud.actionButtons.show(ctrl.cfg.canCancel ? Buttons.ABORT.b : 0);
+ ctrl.hud.actionButtons.show((ctrl.cfg.canCancel && (map.moveableUnits.size() > 1))? Buttons.ABORT.b : 0);
if (activeUnit == null)
activeUnit = selectedUnit;