forked from rosebudai/OpenRCT2-Web
Replace C-style functions for checking getting path additions
This commit is contained in:
1 parent
ee05438953
commit
ecd6247462
15 files changed
+63
-57
No files matched your search
@@ -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