mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Correctly import Heide-Parks Compact Inverted Coaster
This commit is contained in:
@@ -531,7 +531,17 @@ private:
|
||||
{
|
||||
memset(dst, 0, sizeof(rct_ride));
|
||||
|
||||
dst->type = RCT1::GetRideType(src->type);
|
||||
// This is a pecularity of this exact version number, which only Heide-Park seems to use.
|
||||
if (_s4.game_version == 110018 && src->type == RCT1_RIDE_TYPE_INVERTED_ROLLER_COASTER)
|
||||
{
|
||||
dst->type = RIDE_TYPE_COMPACT_INVERTED_COASTER;
|
||||
}
|
||||
else
|
||||
{
|
||||
dst->type = RCT1::GetRideType(src->type);
|
||||
}
|
||||
|
||||
|
||||
if (RCT1::RideTypeUsesVehicles(src->type))
|
||||
{
|
||||
dst->subtype = _vehicleTypeToRideEntryMap[src->vehicle_type];
|
||||
|
||||
@@ -553,7 +553,7 @@ sint32 sawyercoding_detect_file_type(const uint8 *src, size_t length)
|
||||
sint32 sawyercoding_detect_rct1_version(sint32 gameVersion)
|
||||
{
|
||||
sint32 fileType = (gameVersion) > 0 ? FILE_TYPE_SV4 : FILE_TYPE_SC4;
|
||||
gameVersion=abs(gameVersion);
|
||||
gameVersion = abs(gameVersion);
|
||||
|
||||
if (gameVersion >= 108000 && gameVersion < 110000)
|
||||
return (FILE_VERSION_RCT1 | fileType);
|
||||
|
||||
Reference in New Issue
Block a user