mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
Rename ObjectType enum to follow recent code style (#23810)
This commit is contained in:
@@ -1110,7 +1110,7 @@ static void ConsoleCommandLoadObject(InteractiveConsole& console, const argument
|
||||
auto groupIndex = ObjectManagerGetLoadedObjectEntryIndex(loadedObject);
|
||||
|
||||
ObjectType objectType = entry->GetType();
|
||||
if (objectType == ObjectType::Ride)
|
||||
if (objectType == ObjectType::ride)
|
||||
{
|
||||
// Automatically research the ride so it's supported by the game.
|
||||
const auto* rideEntry = GetRideEntryByIndex(groupIndex);
|
||||
@@ -1129,7 +1129,7 @@ static void ConsoleCommandLoadObject(InteractiveConsole& console, const argument
|
||||
ResearchResetCurrentItem();
|
||||
gSilentResearch = false;
|
||||
}
|
||||
else if (objectType == ObjectType::SceneryGroup)
|
||||
else if (objectType == ObjectType::sceneryGroup)
|
||||
{
|
||||
ResearchInsertSceneryGroupEntry(groupIndex, true);
|
||||
|
||||
@@ -1172,7 +1172,7 @@ constexpr auto _objectTypeNames = std::to_array<StringId>({
|
||||
STR_OBJECT_SELECTION_PEEP_NAMES,
|
||||
STR_OBJECT_SELECTION_PEEP_ANIMATIONS,
|
||||
});
|
||||
static_assert(_objectTypeNames.size() == EnumValue(ObjectType::Count));
|
||||
static_assert(_objectTypeNames.size() == EnumValue(ObjectType::count));
|
||||
|
||||
static void ConsoleCommandCountObjects(InteractiveConsole& console, [[maybe_unused]] const arguments_t& argv)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user