1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Move track and vehicle settings to their own struct

This commit is contained in:
Gymnasiast
2024-07-03 22:33:24 +02:00
parent e47f526067
commit 3977841dd9
10 changed files with 78 additions and 74 deletions

View File

@@ -79,8 +79,8 @@ public:
TrackRepositoryItem item;
item.Name = GetNameFromTrackPath(path);
item.Path = path;
item.RideType = td->type;
item.ObjectEntry = std::string(td->vehicleObject.Entry.name, 8);
item.RideType = td->trackAndVehicle.rtdIndex;
item.ObjectEntry = std::string(td->trackAndVehicle.vehicleObject.Entry.name, 8);
item.Flags = 0;
if (IsTrackReadOnly(path))
{