From: Jiri Vlasak Date: Mon, 17 Jun 2019 08:33:29 +0000 (+0200) Subject: Find final path only when goal found X-Git-Tag: v0.7.0~7^2~9 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/iamcar.git/commitdiff_plain/5b96a5f06c2f7ac18809eaf7089eb49a1bb002b8 Find final path only when goal found --- diff --git a/base/main.cc b/base/main.cc index 9779164..4cafb4f 100644 --- a/base/main.cc +++ b/base/main.cc @@ -272,7 +272,7 @@ int main() p.tlog(p.findt()); } } - if (ps.slotType() == PARALLEL) + if (p.goal_found() && ps.slotType() == PARALLEL) p.tlog(p.findt(p.slot_cusp().back())); #elif defined USE_PTHREAD bool gf = false;