mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Banner Refactor from NSF (#14788)
* Banner refactor * Fix mistake in fix_duplicated_banners * Reduce limit back * Fix export * Free banner on delete * Increment network version * Fix potential banner pointer crashes Co-authored-by: Ted John <ted@brambles.org>
This commit is contained in:
@@ -1259,15 +1259,7 @@ static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] cons
|
||||
|
||||
int32_t staffCount = GetEntityListCount(EntityType::Staff);
|
||||
|
||||
int32_t bannerCount = 0;
|
||||
for (BannerIndex i = 0; i < MAX_BANNERS; ++i)
|
||||
{
|
||||
auto banner = GetBanner(i);
|
||||
if (!banner->IsNull())
|
||||
{
|
||||
bannerCount++;
|
||||
}
|
||||
}
|
||||
auto bannerCount = GetNumBanners();
|
||||
|
||||
console.WriteFormatLine("Sprites: %d/%d", spriteCount, MAX_ENTITIES);
|
||||
console.WriteFormatLine("Map Elements: %zu/%d", tileElementCount, MAX_TILE_ELEMENTS);
|
||||
|
||||
Reference in New Issue
Block a user