diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-19 14:59:21 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-19 14:59:21 +0100 |
commit | 2d1e82949b9c359a4fab09d42c7b2f73380f3010 (patch) | |
tree | 0aae3b8991f8948153123694f68fdce76f03ccd0 /core | |
parent | 591bf2e0fef3822ece535d3bc48fc1465e19b1db (diff) | |
download | RustAndDust-2d1e82949b9c359a4fab09d42c7b2f73380f3010.zip RustAndDust-2d1e82949b9c359a4fab09d42c7b2f73380f3010.tar.gz |
Engagement: no need te explicitly touch ok button
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/Engagement.java | 4 |
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 |