diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 11:42:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 11:42:54 +0100 |
commit | 6dbe3257c23e5aaed508d401cb0ab5d1869fac1f (patch) | |
tree | 6244ec8b5669977f0098372d7ad1379f8f8ec214 | |
parent | 3cb3e0503e193e1aa5343991d88431b55612c701 (diff) | |
download | RustAndDust-6dbe3257c23e5aaed508d401cb0ab5d1869fac1f.zip RustAndDust-6dbe3257c23e5aaed508d401cb0ab5d1869fac1f.tar.gz |
Ctrl: stateTouchUp() does out of map down/up before calling state.touchUp()
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Ctrl.java | 10 |
1 files 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) |