summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-18 21:54:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-18 21:54:33 +0100
commit94cbd9bb4a3e2c56f5be653b335c29ed31c052ff (patch)
tree69d531e41fb80a262a1482bb36bc1d054360c457 /core/src/ch/asynk
parente527afa1bfb991b3c85cb1942a7a140373048774 (diff)
downloadRustAndDust-94cbd9bb4a3e2c56f5be653b335c29ed31c052ff.zip
RustAndDust-94cbd9bb4a3e2c56f5be653b335c29ed31c052ff.tar.gz
Map: revertEnter cleans up commands
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 5384abc..f949a39 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -425,11 +425,12 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
public void revertEnter(final Unit unit)
{
- TankOnTank.debug(" revertEnter()"+ unit);
- unit.reset();
+ TankOnTank.debug(" revertEnter() "+ unit);
removePawn(unit);
objectives.revert(this);
ctrl.player.revertUnitEntry(unit);
+ commands.dispose(unit);
+ unit.reset();
}
public boolean engageUnit(final Unit unit, final Unit target)