Here is a patch that allows the player to convert a rail depot to another rail type (parts of the code are taken from other files of OpenTTD, especially the autoreplace system). Since it adds a new internal command, it breaks multiplayer compatibility (but if all players applied the patch, it should work).
To fully convert a rail network:
- First you send all your trains to depot.
- Then you use the classic convert tool (the depot containing trains are not modified).
- Here is the new part: you open and upgrade the remaining depots:
- A conversion window appears (see autoreplace? the same). You may choose a specific rail type with the dropdown in the bottom left corner. For each item on the left, you choose a replacement. If there is at least one train still moving in/out of a depot, an error message will appear (in that case, close the window, wait all your trains stop and retry).
- That's all.
- fix data transfer in multiplayer (require Packet::Send/Recv_binary() provided with enhanced viewport)
[r7]
- Fix compilation with gcc.