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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user