1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

resolve: integrated changes from comments

This commit is contained in:
Łukasz Pękalski
2020-11-11 10:51:10 +01:00
parent d287d71624
commit fc4ad82ac1
9 changed files with 29 additions and 111 deletions

View File

@@ -1124,17 +1124,18 @@ static int32_t cc_object_count(InteractiveConsole& console, [[maybe_unused]] con
"Paths", "Path Additions", "Scenery groups", "Park entrances", "Water",
};
for (int32_t i = 0; i < 10; i++)
for (ObjectType i = ObjectType::Ride; i < ObjectType::ScenarioText; i++)
{
int32_t entryGroupIndex = 0;
for (; entryGroupIndex < object_entry_group_counts[i]; entryGroupIndex++)
for (; entryGroupIndex < object_entry_group_counts[EnumValue(i)]; entryGroupIndex++)
{
if (object_entry_get_chunk(static_cast<ObjectType>(i), entryGroupIndex) == nullptr)
if (object_entry_get_chunk(i, entryGroupIndex) == nullptr)
{
break;
}
}
console.WriteFormatLine("%s: %d/%d", object_type_names[i], entryGroupIndex, object_entry_group_counts[i]);
console.WriteFormatLine(
"%s: %d/%d", object_type_names[EnumValue(i)], entryGroupIndex, object_entry_group_counts[EnumValue(i)]);
}
return 0;