From 366c2fdda57bf6b8dac4980c7de51d189296630c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 22 Apr 2016 11:13:12 +0200 Subject: Unit: do not substract road march bonus to a 0 cost move --- core/src/ch/asynk/rustanddust/game/Unit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java index 836ac93..a55c7b3 100644 --- a/core/src/ch/asynk/rustanddust/game/Unit.java +++ b/core/src/ch/asynk/rustanddust/game/Unit.java @@ -296,7 +296,7 @@ public class Unit extends HeadedPawn public void move() { int cost = move.cost; - if (move.roadMarch) { + if ((cost > 0) && move.roadMarch) { cost -= getRoadMarchBonus(); if (cost < 1) cost = 1; } -- cgit v1.1-2-g2b99