1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

fix #2385: Parks created with scenario editor do not have correct initial temperature

This commit is contained in:
IntelOrca
2015-11-28 12:24:19 +00:00
parent 7909ba1f3b
commit cf1961b725

View File

@@ -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;
}