Add support for “no queue banner” flag

This commit is contained in:
Gymnasiast 2021-10-17 12:34:54 +02:00
parent f1875f9518
commit f03de84116
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
3 changed files with 3 additions and 1 deletions

View File

@ -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 },
});
}

View File

@ -419,7 +419,7 @@ static void sub_6A4101(
}
}
if (!pathElement.HasQueueBanner())
if (!pathElement.HasQueueBanner() || (pathPaintInfo.RailingFlags & RAILING_ENTRY_FLAG_NO_QUEUE_BANNER))
{
return;
}

View File

@ -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