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

Method Close

src/road_gui.cpp:364–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362 }
363
364 void Close([[maybe_unused]] int data = 0) override
365 {
366 if (_game_mode == GM_NORMAL && (this->IsWidgetLowered(WID_ROT_BUS_STATION) || this->IsWidgetLowered(WID_ROT_TRUCK_STATION))) SetViewportCatchmentStation(nullptr, true);
367 if (_settings_client.gui.link_terraform_toolbar) CloseWindowById(WC_SCEN_LAND_GEN, 0, false);
368 this->Window::Close();
369 }
370
371 /**
372 * Some data on this window has become invalid.

Callers 1

OnInvalidateDataMethod · 0.95

Calls 3

CloseWindowByIdFunction · 0.85
IsWidgetLoweredMethod · 0.80

Tested by

no test coverage detected