Skip to content

Commit

Permalink
Stabilize scenario and track editors\
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronVanGeffen committed May 1, 2024
1 parent ad79699 commit 8973e35
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/openrct2/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ namespace Editor
*/
void Load()
{
// TODO: replace with dedicated scene
auto* context = GetContext();
context->SetActiveScene(context->GetGameScene());

auto& gameState = GetGameState();
Audio::StopAll();
ObjectListLoad();
Expand Down Expand Up @@ -161,6 +165,10 @@ namespace Editor
*/
void LoadTrackDesigner()
{
// TODO: replace with dedicated scene
auto* context = GetContext();
context->SetActiveScene(context->GetGameScene());

Audio::StopAll();
gScreenFlags = SCREEN_FLAGS_TRACK_DESIGNER;
gScreenAge = 0;
Expand All @@ -182,6 +190,10 @@ namespace Editor
*/
void LoadTrackManager()
{
// TODO: replace with dedicated scene
auto* context = GetContext();
context->SetActiveScene(context->GetGameScene());

Audio::StopAll();
gScreenFlags = SCREEN_FLAGS_TRACK_MANAGER;
gScreenAge = 0;
Expand Down Expand Up @@ -244,6 +256,10 @@ namespace Editor
{
ClearMapForEditing(loadedFromSave);

// TODO: replace with dedicated scene
auto* context = GetContext();
context->SetActiveScene(context->GetGameScene());

GetGameState().EditorStep = EditorStep::LandscapeEditor;
gScreenAge = 0;
gScreenFlags = SCREEN_FLAGS_SCENARIO_EDITOR;
Expand Down

0 comments on commit 8973e35

Please sign in to comment.