Changeset - r333:01d8752c0282
[Not reviewed]
master
0 1 0
tron - 20 years ago 2004-11-03 11:06:21
tron@openttd.org
(svn r500) -Fix: Some bridge part isn't displayed transparent in transparent mode
-Fix: If bridge has no pillars cursor arrow is displayed in transparent mode
1 file changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
tunnelbridge_cmd.c
Show inline comments
 
@@ -934,11 +934,12 @@ static void DrawBridgePillars(TileInfo *
 
	// (necessary for cantilever bridges)
 
	image = b[12 + (ti->map5&0x01)];
 
	piece = _map2[ti->tile]&0xF;
 
	if( image!=0 && piece!=0 )
 
		DrawGroundSpriteAt(image, x,y, z);
 
	if (image != 0 && piece != 0) {
 
		if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000;
 
		DrawGroundSpriteAt(image, x, y, z);
 
	}
 

	
 
	image = b[(ti->map5&0x01)*6 + piece];
 
	if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000;
 

	
 
	if (image != 0) {
 
		int back_height, front_height, i=z;
 
@@ -951,6 +952,8 @@ static void DrawBridgePillars(TileInfo *
 
			{2,4,8,1,  11,16,9,0},
 
		};
 

	
 
		if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000;
 

	
 
		p = _tileh_bits[(image & 1) * 2 + (ti->map5&0x01)];
 
		front_height = ti->z + ((ti->tileh & p[0])?8:0);
 
		back_height = ti->z + ((ti->tileh & p[1])?8:0);
0 comments (0 inline, 0 general)