diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java index 9efd699..f85a036 100644 --- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java +++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java @@ -106,7 +106,8 @@ public class PathBuilder implements Disposable if (from == to) { this.distance = 0; Path path = Path.get(0); - path.cost = 0; + path.cost = 1; + path.roadMarch = false; paths.add(path); } else { this.distance = board.distance(from, to); |