summaryrefslogtreecommitdiff
path: root/elrail.c
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-08-29 21:34:02 +0000
committerglx <glx@openttd.org>2006-08-29 21:34:02 +0000
commit9247868696f602d7a7e075e3f16e9b54b8a19133 (patch)
tree2c409a13c3d51fdec07023207c780faf4a0f9f9e /elrail.c
parentfd57cba7e5d2d9f864b5a6117b38e60e9c9f65e0 (diff)
downloadopenttd-9247868696f602d7a7e075e3f16e9b54b8a19133.tar.xz
(svn r6226) -Fix(r5864): an assertion was triggered when drawing catenary on steep slopes (TrueLight)
Diffstat (limited to 'elrail.c')
-rw-r--r--elrail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elrail.c b/elrail.c
index b568754e4..f2f1c5d0a 100644
--- a/elrail.c
+++ b/elrail.c
@@ -228,7 +228,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
if (IsTileType(neighbour, MP_STATION)) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
/* Read the foundataions if they are present, and adjust the tileh */
- if (IsTileType(neighbour, MP_RAILWAY)) foundation = GetRailFoundation(tileh[TS_NEIGHBOUR], trackconfig[TS_NEIGHBOUR]);
+ if (IsTileType(neighbour, MP_RAILWAY) && GetRailType(neighbour) == RAILTYPE_ELECTRIC) foundation = GetRailFoundation(tileh[TS_NEIGHBOUR], trackconfig[TS_NEIGHBOUR]);
if (IsBridgeTile(neighbour) && IsBridgeRamp(neighbour)) {
foundation = GetBridgeFoundation(tileh[TS_NEIGHBOUR], DiagDirToAxis(GetBridgeRampDirection(neighbour)));
}