summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index f1ba86a..c1ef21a 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -108,6 +108,7 @@ public class Hex extends Tile
@Override
public int costFrom(Pawn pawn, Orientation side)
{
+ if (side == Orientation.KEEP) return 0;
if (hasUnits()) return (Integer.MAX_VALUE / 2);
if (road(side)) return 1;