summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-14 02:57:38 +0000
committerbelugas <belugas@openttd.org>2008-02-14 02:57:38 +0000
commit81b47a628f47d5844c566a4bdad00263ee3a4cdd (patch)
tree9580b82682d33b4d1cb94812d0ac0ed56eee3fc8 /src/road_gui.cpp
parentfe48d0be219f2035b146c6444c92c305d9c3bedf (diff)
downloadopenttd-81b47a628f47d5844c566a4bdad00263ee3a4cdd.tar.xz
(svn r12135) -Codechange: Road and rail bridge selection windows were identical apart the caption. So remove one window definition and set manually the caption accordingly.
-Codechange: prepare the "type" of bridge parameter only once, at the beginning of the selection process. Makes less magic around.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r--src/road_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 0b4fdecc8..31231e37f 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -532,7 +532,7 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e)
switch (e->we.place.select_proc) {
case DDSP_BUILD_BRIDGE:
ResetObjectToPlace();
- ShowBuildBridgeWindow(start_tile, end_tile, 0x80 | RoadTypeToRoadTypes(_cur_roadtype));
+ ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(_cur_roadtype));
break;
case DDSP_DEMOLISH_AREA: