1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Refactor get banner

This commit is contained in:
Ted John
2019-07-25 17:51:22 +01:00
parent 85543bd1c8
commit 5c07c53faf
32 changed files with 359 additions and 252 deletions

View File

@@ -294,11 +294,12 @@ namespace Editor
map_remove_all_rides();
//
for (auto& banner : gBanners)
for (BannerIndex i = 0; i < MAX_BANNERS; i++)
{
if (banner.type == 255)
auto banner = get_banner(i);
if (banner->type == BANNER_NULL)
{
banner.flags &= ~BANNER_FLAG_LINKED_TO_RIDE;
banner->flags &= ~BANNER_FLAG_LINKED_TO_RIDE;
}
}