1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Port entrance station index and sequence lookup

This commit is contained in:
Michael Steenbeek
2018-09-26 12:54:44 +02:00
committed by Gymnasiast
parent c7eaa1ba80
commit 3c93aca727
15 changed files with 41 additions and 29 deletions

View File

@@ -151,7 +151,7 @@ void setup_in_use_selection_flags()
if (iter.element->AsEntrance()->GetEntranceType() != ENTRANCE_TYPE_PARK_ENTRANCE)
break;
// Skip if not the middle part
if (iter.element->properties.entrance.index != 0)
if (iter.element->AsEntrance()->GetSequenceIndex() != 0)
break;
Editor::SetSelectedObject(OBJECT_TYPE_PARK_ENTRANCE, 0, OBJECT_SELECTION_FLAG_SELECTED);