diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 09f2408..57d96fb 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -162,23 +162,23 @@ public class Hud implements Disposable private void closeDialog() { + boolean ok = okCancel.ok; switch(dialogAction) { case END_TURN: - if (okCancel.ok) + if (ok) ctrl.abortPlayerTurn(); - okCancel.visible = false; break; case END_DEPLOYMENT: - if (okCancel.ok) + if (ok) ctrl.endDeployment(); - okCancel.visible = false; break; case END_GAME: stats.visible = false; ctrl.endGame(); break; } + okCancel.visible = false; ctrl.blockMap = false; } |