| 279 | } |
| 280 | |
| 281 | void OnPlaceObjectAbort() override |
| 282 | { |
| 283 | if (_game_mode != GM_EDITOR && this->IsWidgetLowered(WID_DT_STATION)) SetViewportCatchmentStation(nullptr, true); |
| 284 | |
| 285 | this->RaiseButtons(); |
| 286 | |
| 287 | CloseWindowById(WC_BUILD_STATION, TRANSPORT_WATER); |
| 288 | CloseWindowById(WC_BUILD_DEPOT, TRANSPORT_WATER); |
| 289 | CloseWindowById(WC_SELECT_STATION, 0); |
| 290 | CloseWindowByClass(WC_BUILD_BRIDGE); |
| 291 | } |
| 292 | |
| 293 | void OnPlacePresize([[maybe_unused]] Point pt, TileIndex tile_from) override |
| 294 | { |
nothing calls this directly
no test coverage detected