diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 20:51:08 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 20:51:08 +0100 |
commit | 1b4531faaf6737cc1eb5626a88f29272d6dc7bc5 (patch) | |
tree | 4b80d5c5892ef29869a1e85bfd6338e94cec5017 /core/src/ch | |
parent | 24deb1faa19371913ac0fdce12687710d9e2392b (diff) | |
download | RustAndDust-1b4531faaf6737cc1eb5626a88f29272d6dc7bc5.zip RustAndDust-1b4531faaf6737cc1eb5626a88f29272d6dc7bc5.tar.gz |
PathBuilder: remove useless code
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java index 70c9236..2846928 100644 --- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java +++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java @@ -126,10 +126,8 @@ public class PathBuilder implements Disposable if (paths.size() > 1) { Path good = paths.get(0); for (Path path : paths) { - if ( (path.fitness > good.fitness) || ((path.fitness == good.fitness) && (path.cost < good.cost))) { + if ( (path.fitness > good.fitness) || ((path.fitness == good.fitness) && (path.cost < good.cost))) good = path; - good = path; - } } paths.remove(good); |