diff options
author | rubidium <rubidium@openttd.org> | 2009-08-22 07:02:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-08-22 07:02:33 +0000 |
commit | 5a76fb568604db9cee6e627a8be519774d430b82 (patch) | |
tree | d1d54b66f2c4d4c72ace04843a6823f7f0838e27 | |
parent | bf821420538f38f80cca8a314c27905533fa116a (diff) | |
download | openttd-5a76fb568604db9cee6e627a8be519774d430b82.tar.xz |
(svn r17251) -Fix [FS#3141]: other tunnel end not shown if building rail tunnels and the first railtype is not available yet
-rw-r--r-- | src/rail_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 8a8c97b12..3dda5715a 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); } |