mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #17571: Researched rides show up as new vehicles in .park scenarios
This commit is contained in:
parent
80f0d952ad
commit
56f6828ba9
|
@ -24,6 +24,7 @@
|
|||
- Fix: [#17541] Station style not correctly saved to TD6.
|
||||
- Fix: [#17542] Stalls will autorotate towards paths outside the park.
|
||||
- Fix: [#17553] Crash when moving invention list items to empty list.
|
||||
- Fix: [#17571] All researched tracked rides show up as new vehicles in .park scenarios.
|
||||
- Fix: [#17605] Crash when opening parks which have had objects removed externally.
|
||||
- Fix: [#17639] When building upside down, the special elements list contains many items twice (original bug).
|
||||
|
||||
|
|
|
@ -964,6 +964,7 @@ static void research_update_first_of_type(ResearchItem* researchItem)
|
|||
return;
|
||||
}
|
||||
|
||||
researchItem->flags &= ~RESEARCH_ENTRY_FLAG_FIRST_OF_TYPE;
|
||||
const auto& rtd = GetRideTypeDescriptor(rideType);
|
||||
if (rtd.HasFlag(RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY))
|
||||
{
|
||||
|
|
|
@ -2372,6 +2372,7 @@ public:
|
|||
void Import() override
|
||||
{
|
||||
_parkFile->Import();
|
||||
research_determine_first_of_type();
|
||||
game_fix_save_vars();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue