]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Fix path optimization while not optimal
authorJiri Hubacek <hubacji1@fel.cvut.cz>
Sat, 6 Oct 2018 12:34:09 +0000 (14:34 +0200)
committerJiri Hubacek <hubacji1@fel.cvut.cz>
Sat, 6 Oct 2018 12:34:17 +0000 (14:34 +0200)
CHANGELOG.md
base/main.cc

index 6dc2fe416e0e1bd3f9be5dacdc5861a825329db0..32a4088e8eb622496bebe7aff116b7696f8e335a 100644 (file)
@@ -8,6 +8,8 @@ The format is based on [Keep a Changelog][] and this project adheres to
 [Semantic Versioning]: http://semver.org/
 
 ## Unreleased
+### Fixed
+- Optimize path until optimal.
 
 ## 0.2.0 - 2018-10-06
 ### Added
index 6ac49ededd13ea211dc867a3d4330864511e34bd..b2ccb71a1f124a64ad1707b805cea7afbe0d6296 100644 (file)
@@ -102,7 +102,7 @@ int main()
         while (run_planner) {
                 p.next();
                 p.tend();
-                if (p.opt_path())
+                while (p.opt_path())
                         p.tlog(p.findt());
 #ifdef USE_GL
                 p.glplot();