mirror of https://github.com/OpenTTD/OpenTTD
(svn r4180) -Fix: Fixed an assert in the elrail drawing code due to passing of a wrong variable. I wish the compiler would warn about different enum types used...
parent
0dc5d10de2
commit
756212a71e
2
elrail.c
2
elrail.c
|
@ -283,7 +283,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
|
||||||
IsBridgeTile(ti->tile) &&
|
IsBridgeTile(ti->tile) &&
|
||||||
IsBridgeMiddle(ti->tile) &&
|
IsBridgeMiddle(ti->tile) &&
|
||||||
!(_display_opt & DO_TRANS_BUILDINGS) &&
|
!(_display_opt & DO_TRANS_BUILDINGS) &&
|
||||||
GetBridgeHeight(t) <= TilePixelHeight(t)
|
GetBridgeHeight(ti->tile) <= TilePixelHeight(ti->tile)
|
||||||
) return;
|
) return;
|
||||||
|
|
||||||
assert(PCPconfig != 0); /* We have a pylon on neither end of the wire, that doesn't work (since we have no sprites for that) */
|
assert(PCPconfig != 0); /* We have a pylon on neither end of the wire, that doesn't work (since we have no sprites for that) */
|
||||||
|
|
Loading…
Reference in New Issue