diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Ctrl.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java index 09822b4..8b0fa93 100644 --- a/core/src/ch/asynk/tankontank/game/Ctrl.java +++ b/core/src/ch/asynk/tankontank/game/Ctrl.java @@ -225,9 +225,11 @@ public class Ctrl implements Disposable break; } - this.state.enter(stateType); - + StateType tmp = stateType; stateType = nextState; + + this.state.enter(tmp); + } public void touchDown(float hx, float hy, float mx, float my) |