From d88ed01bc11d608d8ed8a8acf49e30882a1e5f95 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Sun, 26 Oct 2025 13:15:07 +0200 Subject: [PATCH] [traffic] Update comment on offroad penalty Signed-off-by: mvglasow --- libs/traffxml/traff_decoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/traffxml/traff_decoder.cpp b/libs/traffxml/traff_decoder.cpp index c8ab1af3f..1b84077dd 100644 --- a/libs/traffxml/traff_decoder.cpp +++ b/libs/traffxml/traff_decoder.cpp @@ -74,10 +74,10 @@ auto constexpr kOneMpSInKmpH = 3.6; * once the full attribute penalty). * A “wrong” road may also just have a penalty of 4 (e.g. road name mismatch, but road class and * ramp type match). - * A value of 16 has worked well for the DE-B2R-SendlingSued-Passauerstrasse test case. The - * DE-A10-Werder-GrossKreutz or DE-A115-PotsdamDrewitz-Nuthetal test cases still resolve incorrectly - * with an offroad penalty of 8 and even 2, presumably because the correct endpoints are not - * connected by fake segments. + * A value of 16 has worked well for the DE-B2R-SendlingSued-Passauerstrasse test case. (The + * DE-A10-Werder-GrossKreutz or DE-A115-PotsdamDrewitz-Nuthetal test cases gave incorrect results + * due to lack of fake segments, which was fixed through truncation and now works correctly even + * with an offroad penalty of 128.) */ auto constexpr kOffroadPenalty = 16;