From cba53fd3ceec246574986a93c49b9dd387a20262 Mon Sep 17 00:00:00 2001 From: tanzimchowdh <55206233+tanzimchowdh@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:18:31 -0500 Subject: [PATCH] Fix #20196: New scenarios start with an incorrect temperature --- distribution/changelog.txt | 1 + src/openrct2/actions/ClimateSetAction.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b2eef51662..6e96bdfee2 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Improved: [#18632] Land ownership and construction rights are now shown on top of the water. - Improved: [#20951] Activate OpenRCT2 window after using native file dialog on macOS. - Change: [#21225] Raise maximum allowed misc entities to 1600. +- Fix: [#20196] New scenarios start with an incorrect temperature. - Fix: [#20255] Images from the last hovered-over coaster in the object selection are not freed. - Fix: [#20616] Confirmation button in the track designer’s quit prompt has the wrong text. - Fix: [#20628] Moving caret using Ctrl+left can move too far when using a multibyte grapheme. diff --git a/src/openrct2/actions/ClimateSetAction.cpp b/src/openrct2/actions/ClimateSetAction.cpp index 0ed19d5dc2..6b3b3f99a0 100644 --- a/src/openrct2/actions/ClimateSetAction.cpp +++ b/src/openrct2/actions/ClimateSetAction.cpp @@ -45,7 +45,7 @@ GameActions::Result ClimateSetAction::Query() const GameActions::Result ClimateSetAction::Execute() const { - OpenRCT2::GetGameState().Climate = ClimateType{ _climate }; + ClimateReset(_climate); GfxInvalidateScreen();