From 5a76fb568604db9cee6e627a8be519774d430b82 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Aug 2009 07:02:33 +0000 Subject: [PATCH] (svn r17251) -Fix [FS#3141]: other tunnel end not shown if building rail tunnels and the first railtype is not available yet --- src/rail_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 8a8c97b122..3dda5715a8 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -806,7 +806,7 @@ struct BuildRailToolbarWindow : Window { virtual void OnPlacePresize(Point pt, TileIndex tile) { - DoCommand(tile, 0, 0, DC_AUTO, CMD_BUILD_TUNNEL); + DoCommand(tile, _cur_railtype, 0, DC_AUTO, CMD_BUILD_TUNNEL); VpSetPresizeRange(tile, _build_tunnel_endtile == 0 ? tile : _build_tunnel_endtile); }