diff options
author | belugas <belugas@openttd.org> | 2008-02-14 02:57:38 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-02-14 02:57:38 +0000 |
commit | 81b3652f371b59a80828f61c22deb08a6a1baf81 (patch) | |
tree | 9580b82682d33b4d1cb94812d0ac0ed56eee3fc8 /src/road_gui.cpp | |
parent | a0ddc43e92c33436bccc0d16ae935237e02a357e (diff) | |
download | openttd-81b3652f371b59a80828f61c22deb08a6a1baf81.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.cpp | 2 |
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: |