Skip to content

Commit

Permalink
fixing part of the further lanes update for the fcd replay #1922
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 4, 2024
1 parent b55348e commit 2093148
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/microsim/MSVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,13 @@ MSVehicle::Influencer::postProcessRemoteControl(MSVehicle* v) {
}
if (myRemoteLane != nullptr && withinLane) {
if (keepLane) {
// TODO this handles only the case when the new vehicle is completely on the edge
const bool needFurtherUpdate = v->myState.myPos < v->getVehicleType().getLength() && myRemotePos >= v->getVehicleType().getLength();
v->myState.myPos = myRemotePos;
v->myState.myPosLat = myRemotePosLat;
if (needFurtherUpdate) {
v->myState.myBackPos = v->updateFurtherLanes(v->myFurtherLanes, v->myFurtherLanesPosLat, std::vector<MSLane*>());
}
} else {
MSMoveReminder::Notification notify = v->getDeparture() == NOT_YET_DEPARTED
? MSMoveReminder::NOTIFICATION_DEPARTED
Expand Down

0 comments on commit 2093148

Please sign in to comment.