summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-06 11:27:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-06 11:27:14 +0100
commite4868aebea74bba5ded8d1ec9972d85bb96dd109 (patch)
treeb1268422149e4d5523f60b0dbd09a61e3a6bb6c9 /core/src/ch/asynk/tankontank/game/states
parent7a3aeabfd8d758944421b71db3e18aacf77bc4de (diff)
downloadRustAndDust-e4868aebea74bba5ded8d1ec9972d85bb96dd109.zip
RustAndDust-e4868aebea74bba5ded8d1ec9972d85bb96dd109.tar.gz
Map,StatePromote: use ctrl.mapTouch as promote animation start point
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StatePromote.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StatePromote.java b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
index 8cf557a..caf781b 100644
--- a/core/src/ch/asynk/tankontank/game/states/StatePromote.java
+++ b/core/src/ch/asynk/tankontank/game/states/StatePromote.java
@@ -7,7 +7,7 @@ public class StatePromote extends StateCommon
@Override
public void enter(StateType prevState)
{
- map.promoteUnit(ctrl.player, selectedUnit, ctrl.battle.getHudPosition(ctrl.player));
+ map.promoteUnit(ctrl.player, selectedUnit);
ctrl.setAnimationCount(1);
ctrl.setAfterAnimationState(StateType.SELECT);
ctrl.setState(StateType.ANIMATION);