1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Create dedicated method for SetLastForTile()

This commit is contained in:
Gymnasiast
2019-08-25 16:13:02 +02:00
parent 6e200459d3
commit ec5ba20992
10 changed files with 33 additions and 46 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->SetFlag(TILE_ELEMENT_FLAG_LAST_TILE, true);
tile_element->SetLastForTile(true);
tile_element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT);
tile_element->AsSurface()->SetWaterHeight(0);
tile_element->AsSurface()->SetSurfaceStyle(TERRAIN_GRASS);