mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix #21054: No entrance style selected by default in track designer
This commit is contained in:
committed by
GitHub
parent
33523c98c2
commit
39a37f14eb
@@ -5,6 +5,7 @@
|
||||
- Fix: [#20255] Images from the last hovered-over coaster in the object selection are not freed.
|
||||
- Fix: [#20616] Confirmation button in the track designer’s quit prompt has the wrong text.
|
||||
- Fix: [#20628] Moving caret using Ctrl+left can move too far when using a multibyte grapheme.
|
||||
- Fix: [#21054] “No entrance” style is selected by default in the track designer.
|
||||
- Fix: [#21145] [Plugin] setInterval/setTimeout handle conflict.
|
||||
- Fix: [#21157] [Plugin] Widgets do not redraw correctly when updating disabled or visibility state.
|
||||
- Fix: [#21158] [Plugin] Potential crash using setInterval/setTimeout within the callback.
|
||||
|
||||
@@ -483,6 +483,14 @@ void FinishObjectSelection()
|
||||
{
|
||||
SetEveryRideTypeInvented();
|
||||
SetEveryRideEntryInvented();
|
||||
|
||||
auto& objManager = OpenRCT2::GetContext()->GetObjectManager();
|
||||
gLastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain");
|
||||
if (gLastEntranceStyle == OBJECT_ENTRY_INDEX_NULL)
|
||||
{
|
||||
gLastEntranceStyle = 0;
|
||||
}
|
||||
|
||||
gEditorStep = EditorStep::RollercoasterDesigner;
|
||||
GfxInvalidateScreen();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user