summaryrefslogtreecommitdiff
path: root/src/rail_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
commit81b3652f371b59a80828f61c22deb08a6a1baf81 (patch)
tree9580b82682d33b4d1cb94812d0ac0ed56eee3fc8 /src/rail_gui.cpp
parenta0ddc43e92c33436bccc0d16ae935237e02a357e (diff)
downloadopenttd-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/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 59e51614d..d741fe2fb 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -549,7 +549,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e)
switch (e->we.place.select_proc) {
case DDSP_BUILD_BRIDGE:
ResetObjectToPlace();
- ShowBuildBridgeWindow(start_tile, end_tile, _cur_railtype);
+ ShowBuildBridgeWindow(start_tile, end_tile, TRANSPORT_RAIL, _cur_railtype);
break;
case DDSP_PLACE_AUTORAIL:
@@ -1579,3 +1579,4 @@ void SetDefaultRailGui()
}
+