summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-10 11:36:36 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-10 11:36:36 +0100
commit5f8a6934cf9c8a3ef0c73f196f5e6a2dd8b8c91f (patch)
tree55e27763de74f7758118374da4ca34e2ffba15de /core/src
parent991ef55ab0495d7f17bac2534c99dfa0f7341a14 (diff)
downloadRustAndDust-5f8a6934cf9c8a3ef0c73f196f5e6a2dd8b8c91f.zip
RustAndDust-5f8a6934cf9c8a3ef0c73f196f5e6a2dd8b8c91f.tar.gz
StatisticsPanel: hit anywhere to close
Diffstat (limited to 'core/src')
-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