1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Refactor some accessors to tile element type and flags fields

This commit is contained in:
Gymnasiast
2019-08-24 22:41:01 +02:00
parent f23e3368b1
commit 6e200459d3
13 changed files with 74 additions and 50 deletions

View File

@@ -2411,7 +2411,7 @@ static void track_design_preview_clear_map()
{
TileElement* tile_element = &gTileElements[i];
tile_element->ClearAs(TILE_ELEMENT_TYPE_SURFACE);
tile_element->flags = TILE_ELEMENT_FLAG_LAST_TILE;
tile_element->SetFlag(TILE_ELEMENT_FLAG_LAST_TILE, true);
tile_element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT);
tile_element->AsSurface()->SetWaterHeight(0);
tile_element->AsSurface()->SetSurfaceStyle(TERRAIN_GRASS);