diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-30 16:58:40 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-04-25 09:14:01 +0200 |
commit | 81f0f9740690d0f3307d946d848375e269c8d2ee (patch) | |
tree | c8d7133fd9a13c8fde8b8bc2e451918b1b925dcf /src/dock_gui.cpp | |
parent | b6733edd172cb8488f81245addf613152f8a8015 (diff) | |
download | openttd-81f0f9740690d0f3307d946d848375e269c8d2ee.tar.xz |
Feature: Add existing station coverage area display when placing new station parts.
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r-- | src/dock_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index 95989dc03..d74c6d2ca 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -105,6 +105,7 @@ struct BuildDocksToolbarWindow : Window { ~BuildDocksToolbarWindow() { + if (this->IsWidgetLowered(WID_DT_STATION)) SetViewportCatchmentStation(nullptr, true); if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false); } @@ -248,6 +249,8 @@ struct BuildDocksToolbarWindow : Window { void OnPlaceObjectAbort() override { + if (this->IsWidgetLowered(WID_DT_STATION)) SetViewportCatchmentStation(nullptr, true); + this->RaiseButtons(); DeleteWindowById(WC_BUILD_STATION, TRANSPORT_WATER); |