diff options
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r-- | src/dock_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index 1de5899b0..6c588bebe 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -35,7 +35,7 @@ void CcBuildDocks(bool success, TileIndex tile, uint32 p1, uint32 p2) { if (success) { SndPlayTileFx(SND_02_SPLAT, tile); - ResetObjectToPlace(); + if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); } } @@ -215,7 +215,7 @@ struct BuildDocksToolbarWindow : Window { if (pt.x != -1) { switch (select_proc) { case DDSP_BUILD_BRIDGE: - ResetObjectToPlace(); + if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); extern void CcBuildBridge(bool success, TileIndex tile, uint32 p1, uint32 p2); DoCommandP(end_tile, start_tile, TRANSPORT_WATER << 15, CMD_BUILD_BRIDGE | CMD_MSG(STR_CAN_T_BUILD_AQUEDUCT_HERE), CcBuildBridge); |