* Show the endgame victory screen in 2050. Update the new highscore * if it was high enough */
| 251 | * if it was high enough |
| 252 | */ |
| 253 | void ShowEndGameChart() |
| 254 | { |
| 255 | /* Dedicated server doesn't need the highscore window and neither does -v null. */ |
| 256 | if (_network_dedicated || (!_networking && !Company::IsValidID(_local_company))) return; |
| 257 | |
| 258 | HideVitalWindows(); |
| 259 | CloseWindowByClass(WC_ENDSCREEN); |
| 260 | new EndGameWindow(_endgame_desc); |
| 261 | } |
| 262 | |
| 263 | static const IntervalTimer<TimerGameCalendar> _check_end_game({TimerGameCalendar::YEAR, TimerGameCalendar::Priority::NONE}, [](auto) |
| 264 | { |
no test coverage detected