Convert SPRITE_LIST to an enum class

This commit is contained in:
duncanspumpkin committed 2020-07-04 07:38:11 +01:00
1 parent 2d28ca3b28
commit e51bbeed23
30 files changed
+143 -175

No files matched your search

@@ -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];
}