summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java
index 8ee6e68..e415ee3 100644
--- a/core/src/ch/asynk/rustanddust/game/Unit.java
+++ b/core/src/ch/asynk/rustanddust/game/Unit.java
@@ -296,9 +296,10 @@ public class Unit extends HeadedPawn
public void move()
{
int cost = move.cost;
-
- if (move.roadMarch && (cost > mpLeft))
+ if (move.roadMarch) {
cost -= getRoadMarchBonus();
+ if (cost < 1) cost = 1;
+ }
if (cost > mpLeft)
RustAndDust.debug("ERROR: Movement point exceeded: " + cost + "/" + mpLeft + " please report");