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

Function CalculateDesertLine

src/landscape.cpp:1600–1604  ·  view source on GitHub ↗

* Calculate the line (in height) between desert and tropic. * @return The height of the line between desert and tropic. */

Source from the content-addressed store, hash-verified

1598 * @return The height of the line between desert and tropic.
1599 */
1600static uint8_t CalculateDesertLine()
1601{
1602 /* CalculateCoverageLine() runs from top to bottom, so we need to invert the coverage. */
1603 return CalculateCoverageLine(100 - _settings_game.game_creation.desert_coverage, 4);
1604}
1605
1606bool GenerateLandscape(uint8_t mode)
1607{

Callers 1

GenerateLandscapeFunction · 0.85

Calls 1

CalculateCoverageLineFunction · 0.85

Tested by

no test coverage detected