From db82cecce49be3665a9f4008ff2b4ccdda3ac12f Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Tue, 11 Oct 2022 23:09:09 +0200 Subject: [PATCH] Always use original weights when handling --parse-conditionals-from-now --- src/updater/updater.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/updater/updater.cpp b/src/updater/updater.cpp index e24468fe7..e06c159a5 100644 --- a/src/updater/updater.cpp +++ b/src/updater/updater.cpp @@ -584,12 +584,14 @@ Updater::LoadAndUpdateEdgeExpandedGraph(std::vector &e [&] { // we are going to overwrite this `.turn_weight_penalties` afterwards, - // so here we backup the original turn penalties if we didn't do that yet in order to - // guarantee that subsequent runs of this code will work on top of original weights + // so here we backup the original turn penalties if we didn't do that yet in order + // to guarantee that subsequent runs of this code will work on top of original + // weights auto path = config.GetPath(".osrm.turn_weight_penalties").string() + ".original"; if (!boost::filesystem::exists(path)) { - boost::filesystem::copy_file(config.GetPath(".osrm.turn_weight_penalties"), path); + boost::filesystem::copy_file(config.GetPath(".osrm.turn_weight_penalties"), + path); } extractor::files::readTurnWeightPenalty(path, turn_weight_penalties); },