diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-29 02:34:14 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-29 02:34:14 +0100 |
commit | c2ff68f2c67d08dbf2b62b26e532e98676584654 (patch) | |
tree | fb49101f476a25975ca04c9ffbcab434eb3e8553 | |
parent | eae09d2d420e226795b08085afe2cc3c28cd6120 (diff) | |
download | RustAndDust-c2ff68f2c67d08dbf2b62b26e532e98676584654.zip RustAndDust-c2ff68f2c67d08dbf2b62b26e532e98676584654.tar.gz |
StateRotate: do not show ABORT button if only 1 unit is moveable
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateRotate.java | 2 |
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; |