From 2d1e82949b9c359a4fab09d42c7b2f73380f3010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 19 Dec 2014 14:59:21 +0100 Subject: Engagement: no need te explicitly touch ok button --- core/src/ch/asynk/tankontank/game/hud/Engagement.java | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.1-2-g2b99