From b590c572a0c837dd389c8e0582f611d11d671bcd Mon Sep 17 00:00:00 2001 From: Petr Hajduk Date: Mon, 7 Oct 2024 10:56:45 +0300 Subject: [PATCH] secondary dest fix --- Scripts/datatypes/tour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/datatypes/tour.py b/Scripts/datatypes/tour.py index 17ffc8cd..d2dcaab2 100644 --- a/Scripts/datatypes/tour.py +++ b/Scripts/datatypes/tour.py @@ -179,7 +179,7 @@ def choose_destination(self, sec_dest_tours: Dict[str, Dict[int, Dict[int, List[ is_in_area = False except AttributeError: is_in_area = False - if (self.mode != "walk" and is_in_area + if (self.mode != "walk" and self.mode != "park_and_ride" and is_in_area and self._sec_dest_gen_draw < self.sec_dest_prob[self.mode]): orig_rel_idx = orig_idx - bounds.start dest_idx -= bounds.start