From f03de84116748cd323b5a8b165293dd49b8395e1 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 17 Oct 2021 12:34:54 +0200 Subject: [PATCH] =?UTF-8?q?Add=20support=20for=20=E2=80=9Cno=20queue=20ban?= =?UTF-8?q?ner=E2=80=9D=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/openrct2/object/FootpathRailingsObject.cpp | 1 + src/openrct2/paint/tile_element/Paint.Path.cpp | 2 +- src/openrct2/world/Footpath.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2/object/FootpathRailingsObject.cpp b/src/openrct2/object/FootpathRailingsObject.cpp index b1045726f1..739f59489b 100644 --- a/src/openrct2/object/FootpathRailingsObject.cpp +++ b/src/openrct2/object/FootpathRailingsObject.cpp @@ -88,6 +88,7 @@ void FootpathRailingsObject::ReadJson(IReadObjectContext* context, json_t& root) { { "hasSupportImages", RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE }, { "hasElevatedPathImages", RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS }, + { "noQueueBanner", RAILING_ENTRY_FLAG_NO_QUEUE_BANNER }, }); } diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 42627faf8d..673b1ad630 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -419,7 +419,7 @@ static void sub_6A4101( } } - if (!pathElement.HasQueueBanner()) + if (!pathElement.HasQueueBanner() || (pathPaintInfo.RailingFlags & RAILING_ENTRY_FLAG_NO_QUEUE_BANNER)) { return; } diff --git a/src/openrct2/world/Footpath.h b/src/openrct2/world/Footpath.h index e1deb1f37a..ce058ec45b 100644 --- a/src/openrct2/world/Footpath.h +++ b/src/openrct2/world/Footpath.h @@ -174,6 +174,7 @@ enum { RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE = (1 << 0), RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS = (1 << 1), // When elevated + RAILING_ENTRY_FLAG_NO_QUEUE_BANNER = (1 << 2), }; enum