summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-30 16:27:49 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-30 16:27:49 +0200
commit8274022ec734a1bec909fba4c8026d06e3b70ddc (patch)
treec3766ea03179a572cb9e260f9ead3536f27a84c0 /core
parentc18b9dd53947581a2ae5a91c72c9a8287ed894ef (diff)
downloadRustAndDust-8274022ec734a1bec909fba4c8026d06e3b70ddc.zip
RustAndDust-8274022ec734a1bec909fba4c8026d06e3b70ddc.tar.gz
ActionButtons: use ctrl.post(StateType) instead of ctrl.setState(StateType)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java b/core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java
index 51ba8a0..90ec017 100644
--- a/core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java
+++ b/core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java
@@ -135,7 +135,7 @@ public class ActionButtons extends Widget
for (int i = 0; i < Buttons.LAST.i; i++) {
if (buttons[i].hit(x, y)) {
- ctrl.setState(states[i]);
+ ctrl.post(states[i]);
return true;
}
}