(svn r3887) Add a function to get the other bridge end when you're at a bridge ramp

This commit is contained in:
tron
2006-03-15 16:44:50 +00:00
parent 962852b732
commit 3d9c76d8b8
5 changed files with 33 additions and 8 deletions

View File

@@ -809,7 +809,7 @@ int32 DoConvertTunnelBridgeRail(TileIndex tile, uint totype, bool exec)
if (!CheckTileOwnership(tile)) return CMD_ERROR;
// railway bridge
tile = FindEdgesOfBridge(tile, &endtile);
tile = GetOtherBridgeEnd(tile);
// Make sure there's no vehicle on the bridge
v = FindVehicleBetween(tile, endtile, z);
if (v != NULL) {