mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Refactor gScreenFlags to LegacyScene enum
This commit is contained in:
committed by
GitHub
parent
7a823bf928
commit
06c1fed4f7
@@ -325,12 +325,12 @@ void Sub6AB211()
|
||||
_numAvailableObjectsForType[EnumValue(objectType)]++;
|
||||
}
|
||||
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER)
|
||||
if (gLegacyScene == LegacyScene::trackDesigner)
|
||||
{
|
||||
SetupTrackDesignerObjects();
|
||||
}
|
||||
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)
|
||||
if (gLegacyScene == LegacyScene::trackDesignsManager)
|
||||
{
|
||||
SetupTrackManagerObjects();
|
||||
}
|
||||
@@ -338,10 +338,10 @@ void Sub6AB211()
|
||||
SetupInUseSelectionFlags();
|
||||
ResetSelectedObjectCountAndSize();
|
||||
|
||||
if (!(gScreenFlags & (SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER)))
|
||||
if (!(isInTrackDesignerOrManager()))
|
||||
{
|
||||
// To prevent it breaking in scenario mode.
|
||||
if (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR)
|
||||
if (gLegacyScene == LegacyScene::scenarioEditor)
|
||||
{
|
||||
WindowEditorObjectSelectionSelectDefaultObjects();
|
||||
}
|
||||
@@ -511,7 +511,7 @@ void ResetSelectedObjectCountAndSize()
|
||||
void FinishObjectSelection()
|
||||
{
|
||||
auto& gameState = GetGameState();
|
||||
if (gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER)
|
||||
if (gLegacyScene == LegacyScene::trackDesigner)
|
||||
{
|
||||
SetEveryRideTypeInvented();
|
||||
SetEveryRideEntryInvented();
|
||||
|
||||
Reference in New Issue
Block a user