Changeset - r14722:03625b46a399
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2010-03-05 21:34:12
alberth@openttd.org
(svn r19320) -Fix (r19291): Forgot to set error message.
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -1478,8 +1478,11 @@ CommandCost CmdConvertRail(TileIndex til
 
							TileY(endtile) >= sy && TileY(endtile) <= ey) continue;
 

	
 
					/* When not coverting rail <-> el. rail, any vehicle cannot be in tunnel/bridge */
 
					if (!IsCompatibleRail(GetRailType(tile), totype) &&
 
							TunnelBridgeIsFree(tile, endtile).Failed()) continue;
 
					if (!IsCompatibleRail(GetRailType(tile), totype)) {
 
						CommandCost ret = TunnelBridgeIsFree(tile, endtile);
 
						ret.SetGlobalErrorMessage();
 
						if (ret.Failed()) continue;
 
					}
 

	
 
					if (flags & DC_EXEC) {
 
						Track track = DiagDirToDiagTrack(GetTunnelBridgeDirection(tile));
0 comments (0 inline, 0 general)