mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Use ride_type_t instead of uint8_t in more places (#17803)
Part of preparation for making ride types into objects.
This commit is contained in:
committed by
GitHub
parent
6aabe38590
commit
d9e23e9dfa
@@ -1227,13 +1227,12 @@ static int32_t cc_load_object(InteractiveConsole& console, const arguments_t& ar
|
||||
{
|
||||
// Automatically research the ride so it's supported by the game.
|
||||
rct_ride_entry* rideEntry;
|
||||
int32_t rideType;
|
||||
|
||||
rideEntry = get_ride_entry(groupIndex);
|
||||
|
||||
for (int32_t j = 0; j < RCT2::ObjectLimits::MaxRideTypesPerRideEntry; j++)
|
||||
{
|
||||
rideType = rideEntry->ride_type[j];
|
||||
auto rideType = rideEntry->ride_type[j];
|
||||
if (rideType != RIDE_TYPE_NULL)
|
||||
{
|
||||
ResearchCategory category = GetRideTypeDescriptor(rideType).GetResearchCategory();
|
||||
|
||||
Reference in New Issue
Block a user