mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 02:59:10 +00:00
(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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user