summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-29 02:35:46 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-29 02:35:46 +0100
commit2a874ae582500f6aa5fb78647b4f728b1667f517 (patch)
tree526d4121bd89d4d740d99a51aade4c13bf320c7c /core/src/ch/asynk/tankontank/game
parentc2ff68f2c67d08dbf2b62b26e532e98676584654 (diff)
downloadRustAndDust-2a874ae582500f6aa5fb78647b4f728b1667f517.zip
RustAndDust-2a874ae582500f6aa5fb78647b4f728b1667f517.tar.gz
StateEngage: add DONE button only if must validate
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateEngage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEngage.java b/core/src/ch/asynk/tankontank/game/states/StateEngage.java
index 55adac4..5facbce 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateEngage.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateEngage.java
@@ -88,7 +88,7 @@ public class StateEngage extends StateCommon
activeUnit.showTarget();
map.collectAttackAssists(selectedUnit, activeUnit, ctrl.player.units);
map.showAttackAssists();
- ctrl.hud.actionButtons.show(Buttons.DONE.b | ((ctrl.cfg.canCancel) ? Buttons.ABORT.b : 0));
+ ctrl.hud.actionButtons.show((ctrl.cfg.mustValidate ? Buttons.DONE.b : 0) | (ctrl.cfg.canCancel ? Buttons.ABORT.b : 0));
}
else if (unit == activeUnit) {
ctrl.setState(StateType.DONE);