diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hud.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 3c06b05..46fdb47 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -178,7 +178,7 @@ public class Hud implements Disposable { if (!rect.contains(x,y)) return false; - if (cancelBtn.hit(x, y)) { + if (!cancelBtn.isDisabled() && cancelBtn.hit(x, y)) { cancelBtn.setOn(); } @@ -198,7 +198,7 @@ public class Hud implements Disposable // switchTo(GameState.State.ATTACK); } } - if (cancelBtn.hit(x, y)) { + if (!cancelBtn.isDisabled() && cancelBtn.hit(x, y)) { reset(); ctrl.abort(); } |