1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Replace many GetType() calls with GetTypeN()

This commit is contained in:
Michael Steenbeek
2021-12-10 22:43:17 +01:00
committed by GitHub
parent 0879f96f96
commit 2d1af0ec42
44 changed files with 248 additions and 249 deletions

View File

@@ -1254,7 +1254,7 @@ static int32_t cc_remove_park_fences(InteractiveConsole& console, [[maybe_unused
tile_element_iterator_begin(&it);
do
{
if (it.element->GetType() == TILE_ELEMENT_TYPE_SURFACE)
if (it.element->GetTypeN() == TileElementTypeN::Surface)
{
// Remove all park fence flags
it.element->AsSurface()->SetParkFences(0);