1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Port surface elements to new structure

This commit is contained in:
Michael Steenbeek
2018-09-14 14:54:12 +02:00
committed by Gymnasiast
parent d186a04e4f
commit 74ccf010e6
36 changed files with 527 additions and 488 deletions

View File

@@ -1146,7 +1146,7 @@ static int32_t cc_remove_park_fences(
if (it.element->GetType() == TILE_ELEMENT_TYPE_SURFACE)
{
// Remove all park fence flags
it.element->properties.surface.ownership &= 0xF0;
it.element->AsSurface()->SetOwnership(it.element->AsSurface()->GetOwnership());
}
} while (tile_element_iterator_next(&it));