diff options
author | celestar <celestar@openttd.org> | 2006-03-30 15:47:18 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-30 15:47:18 +0000 |
commit | 756212a71e6910919ef854c0f5d9bb35a1e14001 (patch) | |
tree | 274b670ae7224fd810c616aa53798217934a992c | |
parent | 0dc5d10de2c01a4fdf965c85f48ff54427dea89d (diff) | |
download | openttd-756212a71e6910919ef854c0f5d9bb35a1e14001.tar.xz |
(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...
-rw-r--r-- | elrail.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -283,7 +283,7 @@ static void DrawCatenaryRailway(const TileInfo *ti) IsBridgeTile(ti->tile) && IsBridgeMiddle(ti->tile) && !(_display_opt & DO_TRANS_BUILDINGS) && - GetBridgeHeight(t) <= TilePixelHeight(t) + GetBridgeHeight(ti->tile) <= TilePixelHeight(ti->tile) ) 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) */ |