Skip to content

Commit

Permalink
fix #14886
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 18, 2024
1 parent 0256b4c commit 2195453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/microsim/transportables/MSTransportable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@ MSTransportable::getSpeed() const {

void
MSTransportable::tripInfoOutput(OutputDevice& os) const {
SUMOTime departure = myPlan->front()->getDeparted();
os.openTag(isPerson() ? "personinfo" : "containerinfo");
os.writeAttr(SUMO_ATTR_ID, getID());
os.writeAttr(SUMO_ATTR_DEPART, time2string(getDesiredDepart()));
os.writeAttr(SUMO_ATTR_DEPART, departure >= 0 ? time2string(departure) : "-1");
os.writeAttr(SUMO_ATTR_TYPE, getVehicleType().getID());
if (isPerson()) {
os.writeAttr(SUMO_ATTR_SPEEDFACTOR, getChosenSpeedFactor());
Expand Down
1 change: 1 addition & 0 deletions src/microsim/transportables/MSTransportableControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ MSTransportableControl::checkWaiting(MSNet* net, const SUMOTime time) {
it = transportables.erase(it);
myWaitingForDepartureNumber--;
const bool isPerson = t->isPerson();
t->setDeparted(time);
if (t->proceed(net, time)) {
myRunningNumber++;
MSNet::getInstance()->informTransportableStateListener(t,
Expand Down

0 comments on commit 2195453

Please sign in to comment.