diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 22:21:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 22:21:13 +0100 |
commit | 05b020fd6e100e80291412bfcd1fc9a8555e565f (patch) | |
tree | 7b0491fde279dcda3074e143f3f2203cd272635a /core/src/ch | |
parent | 7a3d64b43b1e40c69a1efff8c487950960b27ea8 (diff) | |
download | RustAndDust-05b020fd6e100e80291412bfcd1fc9a8555e565f.zip RustAndDust-05b020fd6e100e80291412bfcd1fc9a8555e565f.tar.gz |
EngagementPanel: ckeck for button hit too
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java index e895c50..2b7e8f5 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java +++ b/core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java @@ -158,7 +158,7 @@ public class EngagementPanel extends Patch implements Animation @Override public boolean hit(float x, float y) { - return rect.contains(x, y); + return (rect.contains(x, y) || okBtn.hit(x, y)); } @Override |