equal
deleted
inserted
replaced
216 |
216 |
217 static void TileLoop_Clear(TileIndex tile) |
217 static void TileLoop_Clear(TileIndex tile) |
218 { |
218 { |
219 TileLoopClearHelper(tile); |
219 TileLoopClearHelper(tile); |
220 |
220 |
221 switch (_settings.game_creation.landscape) { |
221 switch (_settings_game.game_creation.landscape) { |
222 case LT_TROPIC: TileLoopClearDesert(tile); break; |
222 case LT_TROPIC: TileLoopClearDesert(tile); break; |
223 case LT_ARCTIC: TileLoopClearAlps(tile); break; |
223 case LT_ARCTIC: TileLoopClearAlps(tile); break; |
224 } |
224 } |
225 |
225 |
226 switch (GetClearGround(tile)) { |
226 switch (GetClearGround(tile)) { |
344 return; |
344 return; |
345 } |
345 } |
346 |
346 |
347 void InitializeClearLand() |
347 void InitializeClearLand() |
348 { |
348 { |
349 _settings.game_creation.snow_line = _settings.game_creation.snow_line_height * TILE_HEIGHT; |
349 _settings_game.game_creation.snow_line = _settings_game.game_creation.snow_line_height * TILE_HEIGHT; |
350 } |
350 } |
351 |
351 |
352 static CommandCost TerraformTile_Clear(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new) |
352 static CommandCost TerraformTile_Clear(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new) |
353 { |
353 { |
354 return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); |
354 return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); |