diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-14 12:56:34 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-14 12:56:34 +0100 |
commit | 2010c3ecebe7d6b4c5cd7d00be438f33fe72cd1e (patch) | |
tree | e2f3009962188d4f7beb65cfb3a7e86f8384bed3 /core/src/ch | |
parent | 953e31e257dd6b3ed3595cc5b90dd13fdbf6e39c (diff) | |
download | RustAndDust-2010c3ecebe7d6b4c5cd7d00be438f33fe72cd1e.zip RustAndDust-2010c3ecebe7d6b4c5cd7d00be438f33fe72cd1e.tar.gz |
Ctrl: fix stateType management to ensure sequential changes
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) |