1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Reduce code duplication

This commit is contained in:
Gymnasiast
2021-01-15 17:34:47 +01:00
parent 4fcc86f990
commit 19d113ae86

View File

@@ -954,8 +954,6 @@ static void research_update_first_of_type(ResearchItem* researchItem)
if (!_seenRideType[rideType])
researchItem->flags |= RESEARCH_ENTRY_FLAG_FIRST_OF_TYPE;
_seenRideType[rideType] = true;
}
static void research_mark_ride_type_as_seen(const ResearchItem& researchItem)
@@ -1018,5 +1016,6 @@ void research_determine_first_of_type()
}
research_update_first_of_type(&researchItem);
research_mark_ride_type_as_seen(researchItem);
}
}