diff options
author | frosch <frosch@openttd.org> | 2009-01-07 17:40:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-01-07 17:40:17 +0000 |
commit | eb6df17b1a8318e9f91af23fc15149bf9b969b7d (patch) | |
tree | 8a7545f4055397f47b4529fff6d0dc744e67dabe /src/road_gui.cpp | |
parent | 567b2629019678269cf017d5fab9ec3b24b8052e (diff) | |
download | openttd-eb6df17b1a8318e9f91af23fc15149bf9b969b7d.tar.xz |
(svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker)
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r-- | src/road_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 79a37d723..902649df7 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -118,7 +118,7 @@ void CcBuildRoadTunnel(bool success, TileIndex tile, uint32 p1, uint32 p2) { if (success) { SndPlayTileFx(SND_20_SPLAT_2, tile); - ResetObjectToPlace(); + if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); } else { SetRedErrorSquare(_build_tunnel_endtile); } @@ -191,7 +191,7 @@ void CcRoadDepot(bool success, TileIndex tile, uint32 p1, uint32 p2) if (success) { DiagDirection dir = (DiagDirection)GB(p1, 0, 2); SndPlayTileFx(SND_1F_SPLAT, tile); - ResetObjectToPlace(); + if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); BuildRoadOutsideStation(tile, dir); /* For a drive-through road stop build connecting road for other entrance */ if (HasBit(p2, 1)) BuildRoadOutsideStation(tile, ReverseDiagDir(dir)); @@ -579,7 +579,7 @@ struct BuildRoadToolbarWindow : Window { switch (select_proc) { default: NOT_REACHED(); case DDSP_BUILD_BRIDGE: - ResetObjectToPlace(); + if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(_cur_roadtype)); break; |