MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CalculateSnowLine

Function CalculateSnowLine

src/landscape.cpp:1590–1594  ·  view source on GitHub ↗

* Calculate the line from which snow begins. */

Source from the content-addressed store, hash-verified

1588 * Calculate the line from which snow begins.
1589 */
1590static void CalculateSnowLine()
1591{
1592 /* We do not have snow sprites on coastal tiles, so never allow "1" as height. */
1593 _settings_game.game_creation.snow_line_height = std::max(CalculateCoverageLine(_settings_game.game_creation.snow_coverage, 0), 2u);
1594}
1595
1596/**
1597 * Calculate the line (in height) between desert and tropic.

Callers 1

GenerateLandscapeFunction · 0.85

Calls 1

CalculateCoverageLineFunction · 0.85

Tested by

no test coverage detected