summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-19 00:23:23 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-19 00:23:23 +0100
commit4e37c84da7dc00c228960d1d72327f8f098fda65 (patch)
treebd26f4595d640b53802016bffc27c660eb9d16d0 /core/src
parente518b17f855549d540d4aa6bad2c2a785521a106 (diff)
downloadRustAndDust-4e37c84da7dc00c228960d1d72327f8f098fda65.zip
RustAndDust-4e37c84da7dc00c228960d1d72327f8f098fda65.tar.gz
Map: revertMoves() calls commands.dispose(Pawn, OrderType)
Diffstat (limited to 'core/src')
-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);