mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Fix RCT1 import importing too many vehicle types (#11419)
This commit is contained in:
committed by
GitHub
parent
f5e2efac77
commit
144d312ead
@@ -11,6 +11,7 @@
|
||||
- Fix: [#11259] Custom JSON object breaks saves.
|
||||
- Fix: [#11315] Ride that has never opened is shown as favorite ride of many guests.
|
||||
- Fix: [#11405] Building a path through walls does not always remove the walls.
|
||||
- Fix: RCT1 scenarios have more items in the object list than are present in the park or the research list.
|
||||
- Improved: [#6530] Allow water and land height changes on park borders.
|
||||
|
||||
0.2.6 (2020-04-17)
|
||||
|
||||
@@ -409,6 +409,8 @@ private:
|
||||
{
|
||||
size_t researchListCount;
|
||||
const rct1_research_item* researchList = GetResearchList(&researchListCount);
|
||||
std::bitset<RCT1_RIDE_TYPE_COUNT> rideTypeInResearch = GetRideTypesPresentInResearchList(
|
||||
researchList, researchListCount);
|
||||
for (size_t i = 0; i < researchListCount; i++)
|
||||
{
|
||||
const rct1_research_item* researchItem = &researchList[i];
|
||||
@@ -434,7 +436,12 @@ private:
|
||||
AddEntryForRideType(researchItem->item);
|
||||
break;
|
||||
case RCT1_RESEARCH_TYPE_VEHICLE:
|
||||
AddEntryForVehicleType(researchItem->related_ride, researchItem->item);
|
||||
// For some bizarre reason, RCT1 research lists contain vehicles that aren't actually researched.
|
||||
// Extra bizarrely, this does not seem to apply to Loopy Landscapes saves/scenarios.
|
||||
if (rideTypeInResearch[researchItem->related_ride] || _gameVersion == FILE_VERSION_RCT1_LL)
|
||||
{
|
||||
AddEntryForVehicleType(researchItem->related_ride, researchItem->item);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user