summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Button.java2
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);
}