Could you be thinking of “Transport Tycoon” by Chris Sawyer? You built not only railroads, but highway/road systems, harbors, and airports, along with buying trucks, boats and planes. I used to spend entire nights designing and building entire transportation systems.