summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index 5fa1ee6..1bb826c 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -102,7 +102,7 @@ public class Hex extends Tile
@Override
public int costFrom(Pawn pawn, Orientation side)
{
- if (hasUnits()) return Integer.MAX_VALUE;
+ if (hasUnits()) return (Integer.MAX_VALUE / 2);
if (road(side)) return 1;
int c = 0;
@@ -117,7 +117,7 @@ public class Hex extends Tile
break;
case OFFMAP:
case BLOCKED:
- c = Integer.MAX_VALUE;
+ c = (Integer.MAX_VALUE / 2);
break;
}