From f005415f8e20528abd886605f74590039d34220f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 21 Apr 2016 23:55:25 +0200 Subject: PathBuilder: rotation path cost 1 and is not roadMarch --- core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.1-2-g2b99