From b53a8c7c8bccecb1b2e9775bdd5ceb6ba19fe7d6 Mon Sep 17 00:00:00 2001 From: Romain BERNARD <romain.bernard@uca.fr> Date: Mon, 23 Sep 2024 10:22:52 +0200 Subject: [PATCH] fix bounds reset : add depot case --- src/routes/vehicle/SAEVKeyPoint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/vehicle/SAEVKeyPoint.cpp b/src/routes/vehicle/SAEVKeyPoint.cpp index 9094b70..726bb6c 100644 --- a/src/routes/vehicle/SAEVKeyPoint.cpp +++ b/src/routes/vehicle/SAEVKeyPoint.cpp @@ -128,7 +128,10 @@ std::string SAEVKeyPoint::to_string() const { } void SAEVKeyPoint::resetBounds() { - if(isOrigin()) { + if(isDepot()) { + _minTW = 0; + _maxTW = INT16_MAX; + } else if(isOrigin()) { _minTW = _requestPointer->getMinDepartureTw(); _maxTW = _requestPointer->getMaxDepartureTw(); } else { -- GitLab