mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix #8537: Imported RCT1 rides/shops are all numbered 1
This commit is contained in:
committed by
GitHub
parent
2ca83c203a
commit
bbf523e829
@@ -7,6 +7,7 @@
|
||||
- Fix: [#5579] Network desync immediately after connecting.
|
||||
- Fix: [#6006] Objects higher than 6 metres are considered trees (original bug).
|
||||
- Fix: [#7884] Unfinished preserved rides can be demolished with quick demolish.
|
||||
- Fix: [#8537] Imported RCT1 rides/shops are all numbered 1.
|
||||
- Fix: [#8873] Potential crash when placing footpaths.
|
||||
- Fix: [#8882] Submarine Ride does not count as indoors (original bug).
|
||||
- Fix: [#8900] Peep tracking is not synchronized.
|
||||
|
||||
@@ -198,6 +198,7 @@ public:
|
||||
ImportSavedView();
|
||||
FixLandOwnership();
|
||||
CountBlockSections();
|
||||
SetDefaultNames();
|
||||
determine_ride_entrance_and_exit_locations();
|
||||
|
||||
// Importing the strings is done later on, although that approach needs looking at.
|
||||
@@ -789,10 +790,6 @@ private:
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dst->name == 0)
|
||||
{
|
||||
ride_set_name_to_default(dst, rideEntry);
|
||||
}
|
||||
|
||||
dst->status = src->status;
|
||||
|
||||
@@ -2979,6 +2976,24 @@ private:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This has to be done after importing tile elements, because it needs those to detect if a pre-existing ride
|
||||
* name should be considered reserved.
|
||||
*/
|
||||
void SetDefaultNames()
|
||||
{
|
||||
ride_id_t i;
|
||||
Ride* ride;
|
||||
FOR_ALL_RIDES (i, ride)
|
||||
{
|
||||
if (ride->name == 0)
|
||||
{
|
||||
auto rideEntry = get_ride_entry(ride->subtype);
|
||||
ride_set_name_to_default(ride, rideEntry);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
std::unique_ptr<IParkImporter> ParkImporter::CreateS4()
|
||||
|
||||
Reference in New Issue
Block a user