| 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. |
no test coverage detected