1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Slight research refactor

This commit is contained in:
Gymnasiast
2018-01-28 16:14:00 +01:00
committed by Michael Steenbeek
parent c95702c469
commit e8b2a3df0d
8 changed files with 25 additions and 25 deletions

View File

@@ -1255,10 +1255,10 @@ static void editor_load_selected_objects()
if (objectType == OBJECT_TYPE_RIDE) {
rct_ride_entry *rideEntry = get_ride_entry(entryIndex);
uint8 rideType = ride_entry_get_first_non_null_ride_type(rideEntry);
research_insert(1, 0x10000 | (rideType << 8) | entryIndex, rideEntry->category[0]);
research_insert(1, RESEARCH_ENTRY_RIDE_MASK | (rideType << 8) | entryIndex, rideEntry->category[0]);
}
else if (objectType == OBJECT_TYPE_SCENERY_GROUP) {
research_insert(1, entryIndex, RESEARCH_CATEGORY_SCENERYSET);
research_insert(1, entryIndex, RESEARCH_CATEGORY_SCENERY_GROUP);
}
}
}