1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Replace C-style functions for checking getting path additions

This commit is contained in:
Gymnasiast
2018-09-16 17:08:15 +02:00
committed by Michael Steenbeek
parent ee05438953
commit ecd6247462
15 changed files with 63 additions and 57 deletions

View File

@@ -136,9 +136,9 @@ void setup_in_use_selection_flags()
assert(type < object_entry_group_counts[OBJECT_TYPE_PATHS]);
Editor::SetSelectedObject(OBJECT_TYPE_PATHS, type, OBJECT_SELECTION_FLAG_SELECTED);
if (footpath_element_has_path_scenery(iter.element))
if (iter.element->AsPath()->HasAddition())
{
uint8_t path_additions = footpath_element_get_path_scenery_index(iter.element);
uint8_t path_additions = iter.element->AsPath()->GetAdditionEntryIndex();
Editor::SetSelectedObject(OBJECT_TYPE_PATH_BITS, path_additions, OBJECT_SELECTION_FLAG_SELECTED);
}
break;