diff options
author | tron <tron@openttd.org> | 2006-03-15 16:44:50 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-15 16:44:50 +0000 |
commit | 3d9c76d8b81794ad2e13242eafca1022b6dfbca6 (patch) | |
tree | 64e50bf99a33465decab370d13970df72c292068 /tunnelbridge_cmd.c | |
parent | 962852b732e02e77438a4a9f8225f87f5009aa55 (diff) | |
download | openttd-3d9c76d8b81794ad2e13242eafca1022b6dfbca6.tar.xz |
(svn r3887) Add a function to get the other bridge end when you're at a bridge ramp
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index c0151655e..f0d81207d 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -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) { |