diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index 6105637..a488633 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -286,7 +286,7 @@ public class Unit extends HeadedPawn public boolean canHQMove() { - return (isHq() && ((move == null) || (!move.isEntry()))); + return (isHq() && ((move == null) || (!move.isEnter()))); } public void setMoved() @@ -306,7 +306,7 @@ public class Unit extends HeadedPawn if (cost > mpLeft) TankOnTank.debug("ERROR: Movement point exceeded: " + cost + "/" + mpLeft + " please report"); - if (move.isComplete()) + if (move.isFinal()) setMoved(); mpLeft -= cost; |