Allow converting track by individual track pieces instead of whole tiles

Ctrl-click on convert button

See: #509
This commit is contained in:
Jonathan G Rennison
2023-05-06 16:20:23 +01:00
parent 09e03fb6b2
commit 31f476220d
8 changed files with 379 additions and 5 deletions

View File

@@ -136,6 +136,7 @@ void ShowNewGrfVehicleError(EngineID engine, StringID part1, StringID part2, GRF
enum TunnelBridgeIsFreeMode {
TBIFM_ALL,
TBIFM_ACROSS_ONLY,
TBIFM_PRIMARY_ONLY,
};
CommandCost TunnelBridgeIsFree(TileIndex tile, TileIndex endtile, const Vehicle *ignore = nullptr, TunnelBridgeIsFreeMode mode = TBIFM_ALL);
Train *GetTrainClosestToTunnelBridgeEnd(TileIndex tile, TileIndex other_tile);