Port entrance station index and sequence lookup

This commit is contained in:
Michael Steenbeek authored and Gymnasiast committed 2018-09-27 22:15:04 +02:00
1 parent c7eaa1ba80
commit 3c93aca727
15 files changed
+41 -29

No files matched your search

@@ -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);