summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-14 12:56:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-14 12:56:34 +0100
commit2010c3ecebe7d6b4c5cd7d00be438f33fe72cd1e (patch)
treee2f3009962188d4f7beb65cfb3a7e86f8384bed3 /core/src
parent953e31e257dd6b3ed3595cc5b90dd13fdbf6e39c (diff)
downloadRustAndDust-2010c3ecebe7d6b4c5cd7d00be438f33fe72cd1e.zip
RustAndDust-2010c3ecebe7d6b4c5cd7d00be438f33fe72cd1e.tar.gz
Ctrl: fix stateType management to ensure sequential changes
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java6
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)