summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java10
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)