| 996 | } |
| 997 | |
| 998 | void OnPlaceObjectAbort() override |
| 999 | { |
| 1000 | if (Station::IsExpected(Station::Get(this->parent->window_number))) { |
| 1001 | /* this is a station */ |
| 1002 | SetViewportStationRect(Station::Get(this->parent->window_number), false); |
| 1003 | } else { |
| 1004 | /* this is a waypoint */ |
| 1005 | SetViewportWaypointRect(Waypoint::Get(this->parent->window_number), false); |
| 1006 | } |
| 1007 | |
| 1008 | this->RaiseButtons(); |
| 1009 | } |
| 1010 | |
| 1011 | void Close([[maybe_unused]] int data = 0) override |
| 1012 | { |
nothing calls this directly
no test coverage detected