diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-21 23:55:25 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-21 23:55:25 +0200 |
commit | f005415f8e20528abd886605f74590039d34220f (patch) | |
tree | 17f882ca77b4608c7b2fe370e1e75837771ed35b /core/src/ch/asynk | |
parent | 07c87519c22ee6cca6c89f5063d28ab801044d49 (diff) | |
download | RustAndDust-f005415f8e20528abd886605f74590039d34220f.zip RustAndDust-f005415f8e20528abd886605f74590039d34220f.tar.gz |
PathBuilder: rotation path cost 1 and is not roadMarch
Diffstat (limited to 'core/src/ch/asynk')
-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); |