From 7afb687b4676097c1328c0f95079dd73a7867716 Mon Sep 17 00:00:00 2001 From: Michael Behrisch Date: Wed, 9 Oct 2024 09:07:10 +0200 Subject: [PATCH] parsing carriage doors #15562 --- src/utils/vehicle/SUMOVTypeParameter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/vehicle/SUMOVTypeParameter.cpp b/src/utils/vehicle/SUMOVTypeParameter.cpp index 475c415c30d6..b7da4555959d 100644 --- a/src/utils/vehicle/SUMOVTypeParameter.cpp +++ b/src/utils/vehicle/SUMOVTypeParameter.cpp @@ -795,6 +795,10 @@ SUMOVTypeParameter::initRailVisualizationParameters() { carriageGap = StringUtils::toDouble(getParameter("carriageGap")); parametersSet |= VTYPEPARS_CARRIAGE_GAP_SET; } + if (hasParameter("carriageDoors")) { + carriageDoors = StringUtils::toInt(getParameter("carriageDoors")); + parametersSet |= VTYPEPARS_CARRIAGE_DOORS_SET; + } if (hasParameter("frontSeatPos")) { frontSeatPos = StringUtils::toDouble(getParameter("frontSeatPos")); parametersSet |= VTYPEPARS_FRONT_SEAT_POS_SET;