1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Move gClimate to GameState_t

This commit is contained in:
Harry Hopkinson
2024-01-21 21:05:22 +00:00
parent 7ca5b1cd65
commit 0f283dc2a9
11 changed files with 24 additions and 15 deletions

View File

@@ -313,6 +313,8 @@ namespace Editor
staff->SetName({});
}
auto& gameState = GetGameState();
ResetAllEntities();
UpdateConsolidatedPatrolAreas();
gNumGuestsInPark = 0;
@@ -346,7 +348,7 @@ namespace Editor
gBankLoanInterestRate = std::clamp<uint8_t>(gBankLoanInterestRate, 5, MaxBankLoanInterestRate);
}
ClimateReset(gClimate);
ClimateReset(gameState.Climate);
News::InitQueue();
}