summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-07 17:45:00 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-07 17:45:00 +0200
commit861c1e81b0d6f3a5f2e2a1110faa90b7db48c7f7 (patch)
tree4e2c69d0ae21b4baaebb5594cea201b9a1ba8582 /core/src/ch/asynk/rustanddust
parenta4582632c685e146bfebb03ce10bf2a0082ae73a (diff)
downloadRustAndDust-861c1e81b0d6f3a5f2e2a1110faa90b7db48c7f7.zip
RustAndDust-861c1e81b0d6f3a5f2e2a1110faa90b7db48c7f7.tar.gz
Ctrl: ask for deployment end only in PLAY mode
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index f3cf338..3c9a56c 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -562,7 +562,7 @@ public abstract class Ctrl implements Disposable
if (depth > 1)
RustAndDust.error(String.format("***!!!*** STATE DEPTH : %d", depth));
- if (nextState == StateType.DEPLOYMENT) {
+ if ((this.mode == Mode.PLAY) && (nextState == StateType.DEPLOYMENT)) {
if (battle.isDeploymentDone())
hud.askEndDeployment();
}