Skip to content

Commit

Permalink
addendum for meso refs #14821
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 6, 2024
1 parent 42a66fb commit d964155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/microsim/devices/MSIdling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ MSIdling_Stop::idle(MSDevice_Taxi* taxi) {
}
stop.startPos = MAX2(0.0, stopPos.second - POSITION_EPS);
stop.endPos = stopPos.second;
if (MSGlobals::gUseMesoSim) {
// meso needs the stop to be on the next segment
stop.startPos += POSITION_EPS;
stop.endPos += POSITION_EPS;
}
if (taxi->getHolder().getVehicleType().getContainerCapacity() > 0) {
stop.containerTriggered = true;
} else {
Expand Down

0 comments on commit d964155

Please sign in to comment.