mirror of https://github.com/OpenTTD/OpenTTD
(svn r17251) -Fix [FS#3141]: other tunnel end not shown if building rail tunnels and the first railtype is not available yet
parent
bf82142053
commit
5a76fb5686
|
@ -806,7 +806,7 @@ struct BuildRailToolbarWindow : Window {
|
||||||
|
|
||||||
virtual void OnPlacePresize(Point pt, TileIndex tile)
|
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);
|
VpSetPresizeRange(tile, _build_tunnel_endtile == 0 ? tile : _build_tunnel_endtile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue