mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix #14316: Closing the Track Designs Manager window causes broken state
When exiting the Track Design Manager window the user was placed into the scenario editor in a broken state. User is now returned to the main menu when the window is closed.
This commit is contained in:
@@ -172,6 +172,7 @@ The following people are not part of the development team, but have been contrib
|
||||
* Emre Aydin (aemreaydin)
|
||||
* Daniel Karandikar (DKarandikar)
|
||||
* Struan Clark (xtruan)
|
||||
* Kane Shaw (seifer7)
|
||||
|
||||
## Toolchain
|
||||
* (Balletie) - macOS
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
0.3.4.1+ (in development)
|
||||
------------------------------------------------------------------------
|
||||
- Fix: [#14316] Closing the Track Designs Manager window causes broken state.
|
||||
- Fix: [#15096] Crash when placing entrances in the scenario editor near the map corner.
|
||||
- Improved: [#3417] Crash dumps are now placed in their own folder.
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <openrct2/platform/platform.h>
|
||||
#include <openrct2/ride/RideData.h>
|
||||
#include <openrct2/scenario/Scenario.h>
|
||||
#include <openrct2/title/TitleScreen.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/Util.h>
|
||||
#include <openrct2/windows/Intent.h>
|
||||
@@ -456,6 +457,11 @@ static void window_editor_object_selection_mouseup(rct_window* w, rct_widgetinde
|
||||
{
|
||||
finish_object_selection();
|
||||
}
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)
|
||||
{
|
||||
game_unload_scripts();
|
||||
title_load();
|
||||
}
|
||||
break;
|
||||
case WIDX_FILTER_RIDE_TAB_ALL:
|
||||
_filter_flags |= FILTER_RIDES;
|
||||
|
||||
Reference in New Issue
Block a user