diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-21 10:53:10 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-21 10:53:10 +0100 |
commit | ac5e822562c6fdd28911a7cba8bc90331b14336d (patch) | |
tree | 123162e9975aa2cd319b97e99b63cae5dff7f4dc /core/src | |
parent | ab76defa6334d83ba2d73a3adfad1d697061c1e4 (diff) | |
download | RustAndDust-ac5e822562c6fdd28911a7cba8bc90331b14336d.zip RustAndDust-ac5e822562c6fdd28911a7cba8bc90331b14336d.tar.gz |
Map: oops, REGULAR move does not remove unit from player
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index cd958a2..264eff0 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -311,9 +311,13 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS switch(move.type) { case REGULAR: + initMove(unit); + movePawn(unit, move, notifyDoneAnimation(unit), this); + r = moveableUnits.size(); + break; case EXIT: initMove(unit); - movePawn(unit, move, notifyDoneAnimation(unit), objectives); + movePawn(unit, move, notifyDoneAnimation(unit), this); ctrl.player.unitEscape(unit); r = moveableUnits.size(); break; |