forked from rosebudai/OpenRCT2-Web
Move gLastEntranceStyle to GameState_t
This commit is contained in:
1 parent
d0592e0887
commit
048276b67a
11 files changed
+24
-22
No files matched your search
@@ -487,10 +487,10 @@ void FinishObjectSelection()
|
||||
SetEveryRideEntryInvented();
|
||||
|
||||
auto& objManager = OpenRCT2::GetContext()->GetObjectManager();
|
||||
gLastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain");
|
||||
if (gLastEntranceStyle == OBJECT_ENTRY_INDEX_NULL)
|
||||
gameState.LastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain");
|
||||
if (gameState.LastEntranceStyle == OBJECT_ENTRY_INDEX_NULL)
|
||||
{
|
||||
gLastEntranceStyle = 0;
|
||||
gameState.LastEntranceStyle = 0;
|
||||
}
|
||||
|
||||
gameState.EditorStep = EditorStep::RollercoasterDesigner;
|
||||
|
||||
Reference in new issue
Block a user