Changeset - r10014:86dbfdd159ca
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-08-25 18:14:19
peter1138@openttd.org
(svn r14173) -Fix: Don't check for rail type and catenary on aqueducts.
1 file changed with 8 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -1011,8 +1011,10 @@ static void DrawTile_TunnelBridge(TileIn
 
				DrawBridgeTramBits(ti->x, ti->y, z, offset, HasBit(rts, ROADTYPE_ROAD), true);
 
			}
 
			EndSpriteCombine();
 
		} else if (HasCatenaryDrawn(GetRailType(ti->tile))) {
 
			DrawCatenary(ti);
 
		} else if (transport_type == TRANSPORT_RAIL) {
 
			if (HasCatenaryDrawn(GetRailType(ti->tile))) {
 
				DrawCatenary(ti);
 
			}
 
		}
 

	
 
		DrawBridgeMiddle(ti);
 
@@ -1139,8 +1141,10 @@ void DrawBridgeMiddle(const TileInfo* ti
 
			EndSpriteCombine();
 
			StartSpriteCombine();
 
		}
 
	} else if (HasCatenaryDrawn(GetRailType(rampsouth))) {
 
		DrawCatenaryOnBridge(ti);
 
	} else if (transport_type == TRANSPORT_RAIL) {
 
		if (HasCatenaryDrawn(GetRailType(rampsouth))) {
 
			DrawCatenaryOnBridge(ti);
 
		}
 
	}
 

	
 
	/* draw roof, the component of the bridge which is logically between the vehicle and the camera */
0 comments (0 inline, 0 general)