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

Function ShowEndGameChart

src/highscore_gui.cpp:253–261  ·  view source on GitHub ↗

* Show the endgame victory screen in 2050. Update the new highscore * if it was high enough */

Source from the content-addressed store, hash-verified

251 * if it was high enough
252 */
253void 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
263static const IntervalTimer<TimerGameCalendar> _check_end_game({TimerGameCalendar::YEAR, TimerGameCalendar::Priority::NONE}, [](auto)
264{

Callers 1

highscore_gui.cppFile · 0.85

Calls 2

HideVitalWindowsFunction · 0.85
CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected