1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Fix #12774: Plugin: Scripts are not reloaded after new scenario (#16686)

This commit is contained in:
Ted John
2022-02-21 02:14:51 +00:00
committed by GitHub
parent 88528c76c6
commit d93f4bdc1d
3 changed files with 3 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
- Change: [#16424] Following an entity in the title sequence no longer toggles underground view when it's underground.
- Change: [#16493] Boat Hire and Submarine Ride support costs now match their visual appearance.
- Fix: [#11752] Track pieces with fractional cost are too cheap to build.
- Fix: [#12774] [Plugin] Scripts will not be re-initialised when a new scenario is loaded from within a running scenario.
- Fix: [#13336] Can no longer place Bumble Bee track design (reverts #12707).
- Fix: [#14155] Map Generator sometimes places non-tree objects as trees.
- Fix: [#14674] Recent Messages only shows first few notifications.

View File

@@ -531,6 +531,7 @@ static void WindowTopToolbarScenarioselectCallback(const utf8* path)
{
window_close_by_class(WC_EDITOR_OBJECT_SELECTION);
GetContext()->LoadParkFromFile(path, false, true);
game_load_scripts();
}
/**

View File

@@ -650,6 +650,7 @@ namespace OpenRCT2
// so reload the title screen if that happens.
loadTitleScreenFirstOnFail = true;
game_unload_scripts();
_objectManager->LoadObjects(result.RequiredObjects);
parkImporter->Import();
gScenarioSavePath = path;