summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index f949a39..04033ab 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -415,9 +415,10 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
public void revertMoves()
{
- TankOnTank.debug(" revertMoves()");
for (Unit unit: activatedUnits) {
+ TankOnTank.debug(" revertMove() " + unit);
revertLastPawnMove(unit, notifyDoneAnimation(unit));
+ commands.dispose(unit, Command.CommandType.MOVE);
}
activatedUnits.clear();
objectives.revert(this);