summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-19 14:59:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-19 14:59:21 +0100
commit2d1e82949b9c359a4fab09d42c7b2f73380f3010 (patch)
tree0aae3b8991f8948153123694f68fdce76f03ccd0 /core/src/ch/asynk
parent591bf2e0fef3822ece535d3bc48fc1465e19b1db (diff)
downloadRustAndDust-2d1e82949b9c359a4fab09d42c7b2f73380f3010.zip
RustAndDust-2d1e82949b9c359a4fab09d42c7b2f73380f3010.tar.gz
Engagement: no need te explicitly touch ok button
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/Engagement.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/Engagement.java b/core/src/ch/asynk/tankontank/game/hud/Engagement.java
index ef1b0e5..63facca 100644
--- a/core/src/ch/asynk/tankontank/game/hud/Engagement.java
+++ b/core/src/ch/asynk/tankontank/game/hud/Engagement.java
@@ -154,9 +154,7 @@ public class Engagement extends Patch implements Animation
public boolean hit(float x, float y)
{
- if (okBtn.hit(x, y))
- return true;
- return false;
+ return rect.contains(x, y);
}
@Override