From 5486dd3fa4c1e58ebf0b4abef0895c1f93b433d3 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 27 Jul 2021 16:45:06 +0200 Subject: [PATCH] =?UTF-8?q?Hide=20wooden=20platforms=20when=20the=20?= =?UTF-8?q?=E2=80=9Cno=20platforms=E2=80=9D=20station=20style=20is=20selec?= =?UTF-8?q?ted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/openrct2/ride/TrackPaint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index ea7245cf5f..ca8cdcd4cf 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -339,6 +339,9 @@ static void track_paint_util_draw_station_impl( auto stationObj = ride_get_station_object(ride); const bool hasGreenLight = tileElement->AsTrack()->HasGreenLight(); + if (stationObj != nullptr && stationObj->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS) + return; + bool hasFence; uint32_t imageId;