diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 42572ff..0ec25e3 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -216,8 +216,9 @@ public class Hud implements Disposable public boolean touchDown(float x, float y) { - if (flag.contains(x,y)) return true; - if (reinforcement.contains(x,y)) return true; + if (reinforcement.contains(x,y) || unitDock.contains(x, y)) return true; + else unitDock.hide(); + if (turns.contains(x,y)) return true; if (!actionsBg.contains(x,y)) return false; btn = null; @@ -246,7 +247,7 @@ public class Hud implements Disposable if (btn != null) btn.setOn(); - if (flag.contains(x,y)) { + if (turns.contains(x,y)) { ctrl.endPlayerTurn(); return true; } |