summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java b/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java
index a5e3ada..c6cfbc5 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/StatisticsPanel.java
@@ -77,9 +77,7 @@ public class StatisticsPanel extends Patch
@Override
public boolean hit(float x, float y)
{
- if (okBtn.hit(x, y))
- return true;
- return false;
+ return (rect.contains(x, y) || okBtn.hit(x, y));
}
@Override