From ae85ae0623072113fe8d5bf2c076562d73316d34 Mon Sep 17 00:00:00 2001 From: Jakob Erdmann Date: Sun, 29 Dec 2024 11:21:32 +0100 Subject: [PATCH] fix #15956 --- src/guisim/GUIParkingArea.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/guisim/GUIParkingArea.cpp b/src/guisim/GUIParkingArea.cpp index f24aaefbb736..f1e09dad7976 100644 --- a/src/guisim/GUIParkingArea.cpp +++ b/src/guisim/GUIParkingArea.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -192,7 +193,11 @@ GUIParkingArea::drawGL(const GUIVisualizationSettings& s) const { // draw parking vehicles (their lane might not be within drawing range. if it is, they are drawn twice) myLane.getVehiclesSecure(); for (const MSBaseVehicle* const v : myLane.getParkingVehicles()) { - static_cast(v)->drawGL(s); + if (MSGlobals::gUseMesoSim) { + static_cast(v)->drawGL(s); + } else { + static_cast(v)->drawGL(s); + } } myLane.releaseVehicles(); }