From 6dbe3257c23e5aaed508d401cb0ab5d1869fac1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 18 Dec 2014 11:42:54 +0100 Subject: Ctrl: stateTouchUp() does out of map down/up before calling state.touchUp() --- core/src/ch/asynk/tankontank/game/Ctrl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java index 11b20a8..dabe3fa 100644 --- a/core/src/ch/asynk/tankontank/game/Ctrl.java +++ b/core/src/ch/asynk/tankontank/game/Ctrl.java @@ -265,14 +265,16 @@ public class Ctrl implements Disposable state.touchUp(); } - public boolean isInAnimation() + public void stateTouchUp() { - return (this.stateType == StateType.ANIMATION); + state.downInMap(-1, -1); + state.upInMap(-1, -1); + state.touchUp(); } - public void stateTouchUp() + public boolean isInAnimation() { - this.state.touchUp(); + return (this.stateType == StateType.ANIMATION); } public void setAfterAnimationState(StateType after) -- cgit v1.1-2-g2b99