From ac5e822562c6fdd28911a7cba8bc90331b14336d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 21 Jan 2015 10:53:10 +0100 Subject: Map: oops, REGULAR move does not remove unit from player --- core/src/ch/asynk/tankontank/game/Map.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.1-2-g2b99