1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Update RideMode to current code style

This commit is contained in:
Gymnasiast
2025-03-06 22:35:59 +01:00
parent e35c7fdb5c
commit 114e8da200
108 changed files with 449 additions and 449 deletions

View File

@@ -174,7 +174,7 @@ static void ConsoleCommandRides(InteractiveConsole& console, const arguments_t&
if (argv.size() > 1 && argv[1] == "mode")
{
console.WriteFormatLine("Ride modes are specified using integer IDs as given below:");
for (int32_t i = 0; i < static_cast<uint8_t>(RideMode::Count); i++)
for (int32_t i = 0; i < static_cast<uint8_t>(RideMode::count); i++)
{
char mode_name[128] = { 0 };
StringId mode_string_id = kRideModeNames[i];
@@ -240,7 +240,7 @@ static void ConsoleCommandRides(InteractiveConsole& console, const arguments_t&
else
{
auto ride = GetRide(RideId::FromUnderlying(ride_index));
if (mode >= static_cast<uint8_t>(RideMode::Count))
if (mode >= static_cast<uint8_t>(RideMode::count))
{
console.WriteFormatLine("Invalid ride mode.");
}