From 05b020fd6e100e80291412bfcd1fc9a8555e565f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 22:21:13 +0100 Subject: EngagementPanel: ckeck for button hit too --- core/src/ch/asynk/rustanddust/game/hud/EngagementPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1-2-g2b99