From 8274022ec734a1bec909fba4c8026d06e3b70ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 30 Mar 2016 16:27:49 +0200 Subject: ActionButtons: use ctrl.post(StateType) instead of ctrl.setState(StateType) --- core/src/ch/asynk/rustanddust/game/hud/ActionButtons.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.1-2-g2b99