Fix #13465: Creating a scenario based on a won save game results in a scenario that’s instantly won

This commit is contained in:
ocalhoun6 authored and GitHub committed 2021-08-04 13:31:53 +02:00
1 parent 2beed229a9
commit 8a09406b64
3 files changed
+6

No files matched your search

+1
View File
@@ -175,6 +175,7 @@ The following people are not part of the development team, but have been contrib
* Struan Clark (xtruan)
* Kane Shaw (seifer7)
* Saad Rehman (SaadRehmanCS)
* (ocalhoun6)
## Toolchain
* (Balletie) - macOS
+1
View File
@@ -2,6 +2,7 @@
------------------------------------------------------------------------
- Feature: [#15084] [Plugin] Add "vehicle.crash" hook
- Feature: [#15143] Added a shortcut key for Giant Screenshot.
- Fix: [#13465] Creating a scenario based on a won save game results in a scenario that’s instantly won.
- Fix: [#14316] Closing the Track Designs Manager window causes broken state.
- Fix: [#14667] “Extreme Hawaiian Island” has unpurchaseable land tiles (original bug).
- Fix: [#15096] Crash when placing entrances in the scenario editor near the map corner.
+4
View File
@@ -134,6 +134,10 @@ namespace Editor
climate_reset(gClimate);
// Clear the scenario completion status
gParkFlags &= ~PARK_FLAGS_SCENARIO_COMPLETE_NAME_INPUT;
gScenarioCompletedCompanyValue = MONEY64_UNDEFINED;
gScreenFlags = SCREEN_FLAGS_SCENARIO_EDITOR;
gEditorStep = EditorStep::ObjectiveSelection;
gScenarioCategory = SCENARIO_CATEGORY_OTHER;