summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-12 01:58:48 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-12 01:58:48 +0200
commit176ca4399b902a723db12bb6af85d0550dd2d90a (patch)
treec008ae0a77c79e25b8d63cb207afacab758239fe /core
parent1c45c9afb59e08e5eb323da69db78be1c77ac559 (diff)
downloadRustAndDust-176ca4399b902a723db12bb6af85d0550dd2d90a.zip
RustAndDust-176ca4399b902a723db12bb6af85d0550dd2d90a.tar.gz
Button: do not hit if ON
Diffstat (limited to 'core')
-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);
}