1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

do more cleanup of old object code

This commit is contained in:
Ted John
2016-07-02 22:13:37 +01:00
parent faf1f08b7f
commit 7124143b89
8 changed files with 62 additions and 261 deletions

View File

@@ -304,35 +304,6 @@ void RideObject::Load()
vehicleEntry->peep_loading_positions = _peepLoadingPositions[i];
}
}
// 0x6DEB71
if (RCT2_GLOBAL(0x9ADAFD, uint8) == 0)
{
for (int i = 0; i < 3; i++)
{
sint16 rideType = _legacyType.ride_type[i];
if (rideType != RIDE_TYPE_NULL)
{
uint8 * typeToRideEntryIndexMap = gTypeToRideEntryIndexMap;
while (rideType >= 0)
{
if (*typeToRideEntryIndexMap++ == 0xFF)
{
rideType--;
}
}
typeToRideEntryIndexMap--;
uint8 previous_entry = 0; // TODO set this to entryIndex
while (typeToRideEntryIndexMap < gTypeToRideEntryIndexMap + Util::CountOf(gTypeToRideEntryIndexMap))
{
uint8 backup_entry = *typeToRideEntryIndexMap;
*typeToRideEntryIndexMap++ = previous_entry;
previous_entry = backup_entry;
}
}
}
}
}
void RideObject::Unload()