From 756212a71e6910919ef854c0f5d9bb35a1e14001 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 30 Mar 2006 15:47:18 +0000 Subject: [PATCH] (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... --- elrail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elrail.c b/elrail.c index 720f9dbe03..a429e8e9bb 100644 --- a/elrail.c +++ b/elrail.c @@ -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) */