diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-10 11:53:05 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-10 11:53:05 +0100 |
commit | a6cab36024b954d4aaf260d0c0ac24ab7044f8f9 (patch) | |
tree | beaaa3200a50f173e45cf879dbe207e6d10784dc /core/src/ch/asynk/tankontank/game | |
parent | 2cfbb884e942492d1389fbd47daeeb74451235c8 (diff) | |
download | RustAndDust-a6cab36024b954d4aaf260d0c0ac24ab7044f8f9.zip RustAndDust-a6cab36024b954d4aaf260d0c0ac24ab7044f8f9.tar.gz |
Pawn,Unit: fix the way the Unit is marked has moved
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index 3e5052e..e97ff2f 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -205,7 +205,7 @@ public class Unit extends HeadedPawn TankOnTank.debug(move.toString()); if (move.cost > mpLeft) TankOnTank.debug("ERROR: Movement point exceeded: " + move.cost + "/" + mpLeft + " please report"); - if (!move.entryMove) { + if (move.isComplete()) { hasMoved = true; } mpLeft -= move.cost; |