(svn r9909) -Fix (r9897): Highlight road tunnels properly when building them.
This commit is contained in:
@@ -339,7 +339,7 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e)
|
|||||||
case WE_PLACE_PRESIZE: {
|
case WE_PLACE_PRESIZE: {
|
||||||
TileIndex tile = e->we.place.tile;
|
TileIndex tile = e->we.place.tile;
|
||||||
|
|
||||||
DoCommand(tile, 0x200 | _cur_roadtype, 0, DC_AUTO, CMD_BUILD_TUNNEL);
|
DoCommand(tile, 0x200 | RoadTypeToRoadTypes(_cur_roadtype), 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);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user