summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-06 16:33:05 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-06 16:33:05 +0200
commit07a12448acaf5749ebdd12ccddca0bfa7db23ded (patch)
tree6ded799f81b526b0f3394070c22a5fab0c8e0f8d /core/src/ch/asynk
parente77270a7412351bdf61398b10e4a6386ad19ca8a (diff)
downloadRustAndDust-07a12448acaf5749ebdd12ccddca0bfa7db23ded.zip
RustAndDust-07a12448acaf5749ebdd12ccddca0bfa7db23ded.tar.gz
Hud: fix calls to ctrl.setState(...)
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java7
1 files 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();