diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 4738c06..a5dfe0a 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -135,9 +135,12 @@ public class Hud implements Disposable hit = null; for (Widget w : dialogs) { - if (w.visible && w.hit(x, y)) { - hit = w; - break; + if (w.visible) { + if (w.hit(x, y)) { + hit = w; + break; + } + return false; } } if (hit == null) { |