diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/Button.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Button.java b/core/src/ch/asynk/tankontank/game/hud/Button.java index b42a9cf..ea94c2c 100644 --- a/core/src/ch/asynk/tankontank/game/hud/Button.java +++ b/core/src/ch/asynk/tankontank/game/hud/Button.java @@ -91,7 +91,7 @@ public class Button implements Disposable public boolean hit(float x, float y) { - if (!visible) return false; + if (!visible || (idx == ON)) return false; return rect.contains(x,y); } |