diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 00:23:23 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-19 00:23:23 +0100 |
commit | 4e37c84da7dc00c228960d1d72327f8f098fda65 (patch) | |
tree | bd26f4595d640b53802016bffc27c660eb9d16d0 /core/src/ch/asynk/tankontank | |
parent | e518b17f855549d540d4aa6bad2c2a785521a106 (diff) | |
download | RustAndDust-4e37c84da7dc00c228960d1d72327f8f098fda65.zip RustAndDust-4e37c84da7dc00c228960d1d72327f8f098fda65.tar.gz |
Map: revertMoves() calls commands.dispose(Pawn, OrderType)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 3 |
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); |