summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StatePromote.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StatePromote.java b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
index 1950847..81d6d7e 100644
--- a/core/src/ch/asynk/tankontank/game/states/StatePromote.java
+++ b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
@@ -7,10 +7,10 @@ public class StatePromote extends StateCommon
@Override
public void enter(StateType prevState)
{
- map.promoteUnit(selectedUnit);
ctrl.setAnimationCount(1);
- ctrl.setAfterAnimationState(StateType.SELECT);
+ ctrl.setAfterAnimationState(StateType.DONE);
ctrl.setState(StateType.ANIMATION);
+ map.promoteUnit(selectedUnit);
}
@Override