1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

Convert SPRITE_LIST to an enum class

This commit is contained in:
duncanspumpkin
2020-06-17 21:42:40 +01:00
parent 2d28ca3b28
commit e51bbeed23
30 changed files with 143 additions and 175 deletions

View File

@@ -437,7 +437,7 @@ static int32_t cc_staff(InteractiveConsole& console, const arguments_t& argv)
{
if (argv[0] == "list")
{
for (auto peep : EntityList<Staff>(SPRITE_LIST_PEEP))
for (auto peep : EntityList<Staff>(EntityListId::Peep))
{
auto name = peep->GetName();
console.WriteFormatLine(
@@ -1223,7 +1223,7 @@ static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] cons
int32_t rideCount = ride_get_count();
int32_t spriteCount = 0;
for (int32_t i = 1; i < SPRITE_LIST_COUNT; ++i)
for (int32_t i = 1; i < static_cast<uint8_t>(EntityListId::Count); ++i)
{
spriteCount += gSpriteListCount[i];
}