mirror of https://github.com/OpenRCT2/OpenRCT2.git
Stabilize scenario and track editors\
This commit is contained in:
parent
ad79699b21
commit
8973e35ba1
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue