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

Method Close

src/highscore_gui.cpp:137–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 void Close([[maybe_unused]] int data = 0) override
138 {
139 if (!_networking) Command<CMD_PAUSE>::Post(PauseMode::Normal, false); // unpause
140 if (_game_mode != GM_MENU && !_exit_game) ShowHighscoreTable(this->window_number, this->rank);
141 this->EndGameHighScoreBaseWindow::Close();
142 }
143
144 void OnPaint() override
145 {

Callers 2

OnClickMethod · 0.45
OnKeyPressMethod · 0.45

Calls 1

ShowHighscoreTableFunction · 0.85

Tested by

no test coverage detected