From cf1961b725e663cdd2b2a6cf007ded7f0058b301 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Sat, 28 Nov 2015 12:24:19 +0000 Subject: [PATCH] fix #2385: Parks created with scenario editor do not have correct initial temperature --- src/scenario.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scenario.c b/src/scenario.c index 6975421c80..bc36a8eb3d 100644 --- a/src/scenario.c +++ b/src/scenario.c @@ -21,6 +21,7 @@ #include "addresses.h" #include "config.h" #include "game.h" +#include "world/climate.h" #include "interface/viewport.h" #include "localisation/date.h" #include "localisation/localisation.h" @@ -809,6 +810,9 @@ int scenario_prepare_for_save() if (RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_TYPE, uint8) == OBJECTIVE_GUESTS_AND_RATING) RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) |= PARK_FLAGS_PARK_OPEN; + // Fix #2385: saved scenarios did not initialise temperatures to selected climate + climate_reset(RCT2_GLOBAL(RCT2_ADDRESS_CLIMATE, uint8)); + return 1; }