(svn r17251) -Fix [FS#3141]: other tunnel end not shown if building rail tunnels and the first railtype is not available yet

This commit is contained in:
rubidium 2009-08-22 07:02:33 +00:00
parent bf82142053
commit 5a76fb5686
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}