mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14173) -Fix: Don't check for rail type and catenary on aqueducts.
This commit is contained in:
parent
23a9938317
commit
b60ff46806
|
@ -1011,8 +1011,10 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
|
||||||
DrawBridgeTramBits(ti->x, ti->y, z, offset, HasBit(rts, ROADTYPE_ROAD), true);
|
DrawBridgeTramBits(ti->x, ti->y, z, offset, HasBit(rts, ROADTYPE_ROAD), true);
|
||||||
}
|
}
|
||||||
EndSpriteCombine();
|
EndSpriteCombine();
|
||||||
} else if (HasCatenaryDrawn(GetRailType(ti->tile))) {
|
} else if (transport_type == TRANSPORT_RAIL) {
|
||||||
DrawCatenary(ti);
|
if (HasCatenaryDrawn(GetRailType(ti->tile))) {
|
||||||
|
DrawCatenary(ti);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawBridgeMiddle(ti);
|
DrawBridgeMiddle(ti);
|
||||||
|
@ -1139,8 +1141,10 @@ void DrawBridgeMiddle(const TileInfo* ti)
|
||||||
EndSpriteCombine();
|
EndSpriteCombine();
|
||||||
StartSpriteCombine();
|
StartSpriteCombine();
|
||||||
}
|
}
|
||||||
} else if (HasCatenaryDrawn(GetRailType(rampsouth))) {
|
} else if (transport_type == TRANSPORT_RAIL) {
|
||||||
DrawCatenaryOnBridge(ti);
|
if (HasCatenaryDrawn(GetRailType(rampsouth))) {
|
||||||
|
DrawCatenaryOnBridge(ti);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* draw roof, the component of the bridge which is logically between the vehicle and the camera */
|
/* draw roof, the component of the bridge which is logically between the vehicle and the camera */
|
||||||
|
|
Loading…
Reference in New Issue