From 63a7e02364a555e6d37ea2d61edfbec908c880b2 Mon Sep 17 00:00:00 2001 From: Dominik Salles <dominik.salles@fkfs.de> Date: Wed, 31 Jan 2024 17:57:06 +0100 Subject: [PATCH] Add ActionStep-Dependency Signed-off-by: Dominik Salles <dominik.salles@fkfs.de> --- src/microsim/MSVehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsim/MSVehicle.cpp b/src/microsim/MSVehicle.cpp index 86509497a775..2136809942f8 100644 --- a/src/microsim/MSVehicle.cpp +++ b/src/microsim/MSVehicle.cpp @@ -4412,7 +4412,7 @@ MSVehicle::executeMove() { // Call to finalizeSpeed applies speed reduction due to dawdling / lane changing but ensures minimum safe speed double vNext = vSafe; const double rawAccel = SPEED2ACCEL(MAX2(vNext, 0.) - myState.mySpeed); - if (vNext <= SUMO_const_haltingSpeed && myWaitingTime > MSGlobals::gStartupWaitThreshold && rawAccel <= accelThresholdForWaiting()) { + if (vNext <= SUMO_const_haltingSpeed && myWaitingTime > MSGlobals::gStartupWaitThreshold && rawAccel <= accelThresholdForWaiting() && myActionStep) { myTimeSinceStartup = 0; } else if (isStopped()) { // do not apply startupDelay for waypoints