From 07a12448acaf5749ebdd12ccddca0bfa7db23ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 6 Oct 2014 16:33:05 +0200 Subject: Hud: fix calls to ctrl.setState(...) --- core/src/ch/asynk/tankontank/game/Hud.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 189af06..b4e7e50 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -163,13 +163,12 @@ public class Hud implements Disposable if (moveAct.hit(x, y)) { moveAct.setOn(); - ctrl.setState(GameState.State.MOVE, false); + ctrl.setState(GameState.State.MOVE); } else if (rotateAct.hit(x, y)) { rotateAct.setOn(); - ctrl.setState(GameState.State.ROTATE, false); + ctrl.setState(GameState.State.ROTATE); } else if (attackAct.hit(x, y)) { - attackAct.setOn(); - ctrl.setState(GameState.State.ATTACK, false); + // TODO } else if (cancelAct.hit(x, y)) { reset(); ctrl.abort(); -- cgit v1.1-2-g2b99