1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix code review comments on research

This commit is contained in:
Ted John
2023-04-17 21:25:19 +01:00
parent 59f9d099b9
commit fe3f32e82e
2 changed files with 30 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ namespace OpenRCT2::Scripting
{
ResearchItem result;
result.baseRideType = 0;
result.category = ResearchCategory::Transport;
result.category = {}; // We ignore category because it will be derived from ride type
result.flags = 0;
result.type = FromDuk<Research::EntryType>(d["type"]);
auto baseRideType = d["rideType"];
@@ -94,7 +94,7 @@ namespace OpenRCT2::Scripting
void funding_set(uint8_t value)
{
ThrowIfGameStateNotMutable();
gResearchFundingLevel = value;
gResearchFundingLevel = std::clamp<uint8_t>(value, RESEARCH_FUNDING_NONE, RESEARCH_FUNDING_MAXIMUM);
}
uint8_t priorities_get() const