Changeset - r4022:e0e40de48d5c
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-06-14 09:52:50
tron@openttd.org
(svn r5260) -Fix: It was possible to convert the railtype of a bridge while a train was on it
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
tunnelbridge_cmd.c
Show inline comments
 
@@ -788,7 +788,6 @@ int32 DoConvertTunnelBridgeRail(TileInde
 
		}
 
		return _price.build_rail >> 1;
 
	} else if (IsBridge(tile) && IsBridgeRamp(tile) && GetBridgeTransportType(tile) == TRANSPORT_RAIL) {
 
		uint z = TilePixelHeight(tile) + TILE_HEIGHT;
 
		const Vehicle* v;
 
		TileIndexDiff delta;
 
		int32 cost;
 
@@ -797,7 +796,7 @@ int32 DoConvertTunnelBridgeRail(TileInde
 

	
 
		endtile = GetOtherBridgeEnd(tile);
 
		// Make sure there's no vehicle on the bridge
 
		v = FindVehicleBetween(tile, endtile, z);
 
		v = FindVehicleBetween(tile, endtile, GetBridgeHeightRamp(tile));
 
		if (v != NULL) {
 
			return_cmd_error(VehicleInTheWayErrMsg(v));
 
		}
0 comments (0 inline, 0 general)