From 4c76955f7b20cfa2f00f7b891622cd59e0f64f45 Mon Sep 17 00:00:00 2001 From: Grzegorz Maj Date: Thu, 26 Sep 2024 17:12:06 +0200 Subject: [PATCH] Fix requestSpeedChange sets target_speed only when it's reached --- simulation/traffic_simulator/src/entity/entity_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulation/traffic_simulator/src/entity/entity_base.cpp b/simulation/traffic_simulator/src/entity/entity_base.cpp index ff4b43a4b0f..df948b8d77c 100644 --- a/simulation/traffic_simulator/src/entity/entity_base.cpp +++ b/simulation/traffic_simulator/src/entity/entity_base.cpp @@ -480,9 +480,9 @@ void EntityBase::requestSpeedChange( return true; } if (isTargetSpeedReached(target_speed)) { - target_speed_ = target_speed.getAbsoluteValue(getCanonicalizedStatus(), other_status_); return true; } + target_speed_ = target_speed.getAbsoluteValue(getCanonicalizedStatus(), other_status_); return false; }, /**