mirror of https://github.com/OpenTTD/OpenTTD
(svn r6226) -Fix(r5864): an assertion was triggered when drawing catenary on steep slopes (TrueLight)
parent
be1bec145e
commit
c595c0e651
2
elrail.c
2
elrail.c
|
@ -228,7 +228,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
|
||||||
if (IsTileType(neighbour, MP_STATION)) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
|
if (IsTileType(neighbour, MP_STATION)) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
|
||||||
|
|
||||||
/* Read the foundataions if they are present, and adjust the tileh */
|
/* 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)) {
|
if (IsBridgeTile(neighbour) && IsBridgeRamp(neighbour)) {
|
||||||
foundation = GetBridgeFoundation(tileh[TS_NEIGHBOUR], DiagDirToAxis(GetBridgeRampDirection(neighbour)));
|
foundation = GetBridgeFoundation(tileh[TS_NEIGHBOUR], DiagDirToAxis(GetBridgeRampDirection(neighbour)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue