1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +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

@@ -551,6 +551,8 @@ static int32_t ConsoleCommandStaff(InteractiveConsole& console, const arguments_
static int32_t ConsoleCommandGet(InteractiveConsole& console, const arguments_t& argv)
{
auto& gameState = GetGameState();
if (!argv.empty())
{
if (argv[0] == "park_rating")
@@ -669,7 +671,8 @@ static int32_t ConsoleCommandGet(InteractiveConsole& console, const arguments_t&
else if (argv[0] == "climate")
{
console.WriteFormatLine(
"climate %s (%d)", ClimateNames[static_cast<uint8_t>(gClimate)], static_cast<uint8_t>(gClimate));
"climate %s (%d)", ClimateNames[static_cast<uint8_t>(gameState.Climate)],
static_cast<uint8_t>(gameState.Climate));
}
else if (argv[0] == "game_speed")
{