From 81b3652f371b59a80828f61c22deb08a6a1baf81 Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 14 Feb 2008 02:57:38 +0000 Subject: (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. --- src/road_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/road_gui.cpp') 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: -- cgit v1.2.3-54-g00ecf