summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-21 23:55:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-21 23:55:25 +0200
commitf005415f8e20528abd886605f74590039d34220f (patch)
tree17f882ca77b4608c7b2fe370e1e75837771ed35b /core/src/ch
parent07c87519c22ee6cca6c89f5063d28ab801044d49 (diff)
downloadRustAndDust-f005415f8e20528abd886605f74590039d34220f.zip
RustAndDust-f005415f8e20528abd886605f74590039d34220f.tar.gz
PathBuilder: rotation path cost 1 and is not roadMarch
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/PathBuilder.java3
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);