summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-04 20:37:06 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-04 20:37:06 +0100
commit9049d13178f17cf95986c6a26dc02676537cf138 (patch)
treeaa3272fcd7df5a2a5db1d8a80b192e962eb215a0 /core
parentc968faf4683610917a2184c827833cbd4ebcb2ee (diff)
downloadRustAndDust-9049d13178f17cf95986c6a26dc02676537cf138.zip
RustAndDust-9049d13178f17cf95986c6a26dc02676537cf138.tar.gz
OptionsPanel: quick closing
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java b/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java
index 65b599a..52728b0 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/OptionsPanel.java
@@ -150,6 +150,11 @@ public class OptionsPanel extends Patch
}
}
+ if (!super.hit(x,y)) {
+ apply();
+ return true;
+ }
+
return false;
}