Changeset - r10107:bcbf746656f1
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2008-09-11 19:12:31
frosch@openttd.org
(svn r14291) -Fix [FS#2288] (r12853): For tunnels DrawCatenary() draws only pillars; DrawCatenaryOnTunnel() draws only wires.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -923,14 +923,18 @@ static void DrawTile_TunnelBridge(TileIn
 
					catenary = true;
 
					StartSpriteCombine();
 
					AddSortableSpriteToDraw(SPR_TRAMWAY_TUNNEL_WIRES + tunnelbridge_direction, PAL_NONE, ti->x, ti->y, BB_data[10], BB_data[11], TILE_HEIGHT, ti->z, IsTransparencySet(TO_CATENARY), BB_data[8], BB_data[9], BB_Z_SEPARATOR);
 
				}
 
			}
 
		} else if (HasCatenaryDrawn(GetRailType(ti->tile))) {
 
			/* Maybe draw pylons on the entry side */
 
			DrawCatenary(ti);
 

	
 
			catenary = true;
 
			StartSpriteCombine();
 
			/* Draw wire above the ramp */
 
			DrawCatenaryOnTunnel(ti);
 
		}
 

	
 
		AddSortableSpriteToDraw(image + 1, PAL_NONE, ti->x + TILE_SIZE - 1, ti->y + TILE_SIZE - 1, BB_data[0], BB_data[1], TILE_HEIGHT, ti->z, false, BB_data[2], BB_data[3], BB_Z_SEPARATOR);
 

	
 
		if (catenary) EndSpriteCombine();
0 comments (0 inline, 0 general)