From 4e37c84da7dc00c228960d1d72327f8f098fda65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 19 Feb 2015 00:23:23 +0100 Subject: Map: revertMoves() calls commands.dispose(Pawn, OrderType) --- core/src/ch/asynk/tankontank/game/Map.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.1-2-g2b99