1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 03:05:24 +01:00

Update calls to ClearAs()

This commit is contained in:
Gymnasiast
2021-12-10 22:58:27 +01:00
parent 2d1af0ec42
commit 50c0080da8
6 changed files with 11 additions and 10 deletions

View File

@@ -154,7 +154,7 @@ void SetTileElements(std::vector<TileElement>&& tileElements)
static TileElement GetDefaultSurfaceElement()
{
TileElement el;
el.ClearAs(TILE_ELEMENT_TYPE_SURFACE);
el.ClearAs(TileElementTypeN::Surface);
el.SetLastForTile(true);
el.base_height = 14;
el.clearance_height = 14;
@@ -433,7 +433,7 @@ void map_init(int32_t size)
for (int32_t i = 0; i < numTiles; i++)
{
auto* element = &tileElements[i];
element->ClearAs(TILE_ELEMENT_TYPE_SURFACE);
element->ClearAs(TileElementTypeN::Surface);
element->SetLastForTile(true);
element->base_height = 14;
element->clearance_height = 14;