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

Method Close

src/fios_gui.cpp:480–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478 }
479
480 void Close([[maybe_unused]] int data = 0) override
481 {
482 /* pause is only used in single-player, non-editor mode, non menu mode */
483 if (!_networking && _game_mode != GM_EDITOR && _game_mode != GM_MENU) {
484 Command<CMD_PAUSE>::Post(PauseMode::SaveLoad, false);
485 }
486 this->Window::Close();
487 }
488
489 void DrawWidget(const Rect &r, WidgetID widget) const override
490 {

Callers 2

OnClickMethod · 0.95
OnKeyPressMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected