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:
committed by
Michael Steenbeek
parent
ee05438953
commit
ecd6247462
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user