diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/ui/OkCancel.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/ui/OkCancel.java b/core/src/ch/asynk/tankontank/ui/OkCancel.java index 3ed64d6..3dfd28d 100644 --- a/core/src/ch/asynk/tankontank/ui/OkCancel.java +++ b/core/src/ch/asynk/tankontank/ui/OkCancel.java @@ -81,6 +81,10 @@ public class OkCancel extends Patch @Override public boolean hit(float x, float y) { + if (!cancelBtn.visible && super.hit(x, y)) { + ok = true; + return true; + } if (okBtn.hit(x, y)) { ok = true; return true; |