summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index cd958a2..264eff0 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -311,9 +311,13 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
switch(move.type) {
case REGULAR:
+ initMove(unit);
+ movePawn(unit, move, notifyDoneAnimation(unit), this);
+ r = moveableUnits.size();
+ break;
case EXIT:
initMove(unit);
- movePawn(unit, move, notifyDoneAnimation(unit), objectives);
+ movePawn(unit, move, notifyDoneAnimation(unit), this);
ctrl.player.unitEscape(unit);
r = moveableUnits.size();
break;