diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-30 16:27:49 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-30 16:27:49 +0200 |
commit | 8274022ec734a1bec909fba4c8026d06e3b70ddc (patch) | |
tree | c3766ea03179a572cb9e260f9ead3536f27a84c0 /core/src/ch | |
parent | c18b9dd53947581a2ae5a91c72c9a8287ed894ef (diff) | |
download | RustAndDust-8274022ec734a1bec909fba4c8026d06e3b70ddc.zip RustAndDust-8274022ec734a1bec909fba4c8026d06e3b70ddc.tar.gz |
ActionButtons: use ctrl.post(StateType) instead of ctrl.setState(StateType)
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java | 2 |
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; } } |