diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2019-05-23 14:03:00 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-05-24 17:29:38 +0300 |
commit | c4fd55a3aa634e4bbaad2d34c641ae784aa7f8dc (patch) | |
tree | c2ceb1a6c0781d26ab16d876c49ad198f25d9b6f /routing/index_router.cpp | |
parent | 67af21aaa3a5c5d733cbe1d5774071264522cafd (diff) |
review fixes
Diffstat (limited to 'routing/index_router.cpp')
-rw-r--r-- | routing/index_router.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/routing/index_router.cpp b/routing/index_router.cpp index e609775819..c6da691b49 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -647,8 +647,15 @@ RouterResultCode IndexRouter::CalculateSubroute(Checkpoints const & checkpoints, if (leapsResult != RouterResultCode::NoError) return leapsResult; - LeapsPostProcessor leapsPostProcessor(subrouteWithoutPostprocessing, starter); - subroute = leapsPostProcessor.GetProcessedPath(); + if (mode == WorldGraphMode::LeapsOnly) + { + LeapsPostProcessor leapsPostProcessor(subrouteWithoutPostprocessing, starter); + subroute = leapsPostProcessor.GetProcessedPath(); + } + else + { + subroute = move(subrouteWithoutPostprocessing); + } } LOG(LINFO, ("Time for routing in mode:", starter.GetGraph().GetMode(), "is", |