1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Revert part of last commit unsuitable for older compilers (#3584)

Also initialise all the items in gResearchedTrackTypesA and
gResearchedTrackTypesB
This commit is contained in:
janisozaur
2016-05-13 11:36:24 +02:00
committed by Ted John
parent 87d05f8a89
commit feb140b84c
4 changed files with 13 additions and 1 deletions

View File

@@ -249,6 +249,11 @@ static void sub_66F6E3()
gResearchedTrackTypesB[i] = (RideTypePossibleTrackConfigurations[i] >> 32ULL) & 0xFFFFFFFFULL;
}
for (int i = countof(RideTypePossibleTrackConfigurations); i < 128; i++) {
gResearchedTrackTypesA[i] = (uint32)-1;
gResearchedTrackTypesB[i] = (uint32)-1;
}
for (int i = 0; i < 8; i++) {
gResearchedRideEntries[i] = 0xFFFFFFFF;
}

View File

@@ -1943,6 +1943,12 @@ static void window_editor_object_selection_manage_tracks()
gResearchedTrackTypesB[i] = (RideTypePossibleTrackConfigurations[i] >> 32ULL) & 0xFFFFFFFFULL;
}
for (int i = countof(RideTypePossibleTrackConfigurations); i < 128; i++) {
gResearchedTrackTypesA[i] = (uint32)-1;
gResearchedTrackTypesB[i] = (uint32)-1;
}
for (int i = 0; i < 8; i++) {
gResearchedRideEntries[i] = 0xFFFFFFFF;
}