Changeset - r3218:3cfde8ea985f
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-03-15 19:53:25
tron@openttd.org
(svn r3891) Fix r3885
1 file changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
tunnelbridge_cmd.c
Show inline comments
 
@@ -820,8 +820,12 @@ int32 DoConvertTunnelBridgeRail(TileInde
 

	
 
		if (GB(_m[tile].m3, 0, 4) == totype) return CMD_ERROR;
 

	
 
		SB(_m[tile].m3, 0, 4, totype);
 
		SB(_m[endtile].m3, 0, 4, totype);
 
		if (exec) {
 
			SB(_m[tile].m3, 0, 4, totype);
 
			SB(_m[endtile].m3, 0, 4, totype);
 
			MarkTileDirtyByTile(tile);
 
			MarkTileDirtyByTile(endtile);
 
		}
 
		cost = 2 * (_price.build_rail >> 1);
 
		delta = TileOffsByDir(GetBridgeRampDirection(tile));
 
		for (tile += delta; tile != endtile; tile += delta) {
0 comments (0 inline, 0 general)