* Calculate the line from which snow begins. */
| 1588 | * Calculate the line from which snow begins. |
| 1589 | */ |
| 1590 | static 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. |
no test coverage detected