diff options
author | alberth <alberth@openttd.org> | 2010-02-28 18:15:19 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-02-28 18:15:19 +0000 |
commit | 63dd6ce6b0d6508ad3c07263b583b0090b2d4cba (patch) | |
tree | 4d49d60b5c90925642ee3309054c5f22836ade02 /src/train_cmd.cpp | |
parent | 986d15ef73106270701616373b778e0332e40555 (diff) | |
download | openttd-63dd6ce6b0d6508ad3c07263b583b0090b2d4cba.tar.xz |
(svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 5723f3d47..c0575f9ec 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2342,7 +2342,7 @@ static void ClearPathReservation(const Train *v, TileIndex tile, Trackdir track_ if (GetTunnelBridgeDirection(tile) == ReverseDiagDir(dir)) { TileIndex end = GetOtherTunnelBridgeEnd(tile); - if (!HasVehicleOnTunnelBridge(tile, end, v)) { + if (TunnelBridgeIsFree(tile, end, v).Succeeded()) { /* Free the reservation only if no other train is on the tiles. */ SetTunnelBridgeReservation(tile, false); SetTunnelBridgeReservation(end, false); |