mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Rework and refactor PathBitEntry (#14809)
This commit is contained in:
@@ -418,7 +418,6 @@ void SetCheatAction::RemoveLitter() const
|
||||
}
|
||||
|
||||
tile_element_iterator it;
|
||||
rct_scenery_entry* sceneryEntry;
|
||||
|
||||
tile_element_iterator_begin(&it);
|
||||
do
|
||||
@@ -429,8 +428,8 @@ void SetCheatAction::RemoveLitter() const
|
||||
if (!(it.element)->AsPath()->HasAddition())
|
||||
continue;
|
||||
|
||||
sceneryEntry = it.element->AsPath()->GetAdditionEntry();
|
||||
if (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_IS_BIN)
|
||||
auto* pathBitEntry = it.element->AsPath()->GetAdditionEntry();
|
||||
if (pathBitEntry->flags & PATH_BIT_FLAG_IS_BIN)
|
||||
it.element->AsPath()->SetAdditionStatus(0xFF);
|
||||
|
||||
} while (tile_element_iterator_next(&it));
|
||||
|
||||
Reference in New Issue
Block a user