diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 21:52:52 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 21:52:52 +0100 |
commit | e527afa1bfb991b3c85cb1942a7a140373048774 (patch) | |
tree | a9b0802991efa9ac7e9af3bace896cf6723b9e71 /core/src/ch | |
parent | a7e90e154140e931a4ed9abb6222ec1df659e97f (diff) | |
download | RustAndDust-e527afa1bfb991b3c85cb1942a7a140373048774.zip RustAndDust-e527afa1bfb991b3c85cb1942a7a140373048774.tar.gz |
Map: setOnBoard first dispose of previous order
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 3f1a552..5384abc 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -390,6 +390,7 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS public boolean setOnBoard(final Unit unit, Hex to, Orientation entry) { + commands.dispose(unit); return (process(getMoveCommand(unit, Move.getSet(unit, to, entry))) == 1); } |