From c09ff7038f642df06f3597cf72fe3739bfcce3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 19 Jan 2015 17:06:10 +0100 Subject: Hex: Orientation.KEEP move -> stay -> cost 0 --- core/src/ch/asynk/tankontank/game/Hex.java | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.1-2-g2b99