1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Rename members of RCT1::BannerType

This commit is contained in:
Gymnasiast
2025-10-07 20:04:41 +02:00
parent e781d6d51b
commit df9f48c810
3 changed files with 20 additions and 20 deletions

View File

@@ -217,17 +217,17 @@ namespace OpenRCT2::RCT1
enum class BannerType : uint8_t
{
Plain = 0,
Jungle,
Roman,
Egyptian,
Mine,
Jurassic,
Oriental,
Snow,
Space,
plain = 0,
jungle,
roman,
egyptian,
mine,
jurassic,
oriental,
snow,
space,
Null = 255,
null = 255,
};
#pragma pack(push, 1)

View File

@@ -620,7 +620,7 @@ namespace OpenRCT2::RCT1
{
auto& banner = _s4.Banners[i];
auto type = static_cast<BannerType>(banner.Type);
if (type == BannerType::Null)
if (type == BannerType::null)
continue;
AddEntryForBanner(type);

View File

@@ -1325,15 +1325,15 @@ namespace OpenRCT2::RCT1
{
static constexpr const char * map[] =
{
"rct2.footpath_banner.bn1", // BannerType::Plain
"rct2.footpath_banner.bn2", // BannerType::Jungle
"rct2.footpath_banner.bn3", // BannerType::Roman
"rct2.footpath_banner.bn4", // BannerType::Egyptian
"rct2.footpath_banner.bn5", // BannerType::Mine
"rct2.footpath_banner.bn6", // BannerType::Jurassic
"rct2.footpath_banner.bn7", // BannerType::Oriental
"rct2.footpath_banner.bn8", // BannerType::Snow
"rct2.footpath_banner.bn9", // BannerType::Space
"rct2.footpath_banner.bn1", // BannerType::plain
"rct2.footpath_banner.bn2", // BannerType::jungle
"rct2.footpath_banner.bn3", // BannerType::roman
"rct2.footpath_banner.bn4", // BannerType::egyptian
"rct2.footpath_banner.bn5", // BannerType::mine
"rct2.footpath_banner.bn6", // BannerType::jurassic
"rct2.footpath_banner.bn7", // BannerType::oriental
"rct2.footpath_banner.bn8", // BannerType::snow
"rct2.footpath_banner.bn9", // BannerType::space
};
return map[EnumValue(bannerType)];
}