* Get the current snow line, either variable or static. * @return the snow line height. * @ingroup SnowLineGroup */
| 604 | * @ingroup SnowLineGroup |
| 605 | */ |
| 606 | uint8_t GetSnowLine() |
| 607 | { |
| 608 | if (_snow_line == nullptr) return _settings_game.game_creation.snow_line_height; |
| 609 | |
| 610 | TimerGameCalendar::YearMonthDay ymd = TimerGameCalendar::ConvertDateToYMD(TimerGameCalendar::date); |
| 611 | return _snow_line->table[ymd.month][ymd.day]; |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * Get the highest possible snow line height, either variable or static. |
no outgoing calls
no test coverage detected