From 0a026ff41fe054d40f02d138dcbe6e8ed8240fa1 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 12 Jul 2010 18:15:37 +0000 Subject: [PATCH] (svn r20132) -Fix [FS#3944](r20126): There can also be halftile foundations on slopes with opposite corners raised. --- src/elrail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elrail.cpp b/src/elrail.cpp index 7577903129..3a4275dddc 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -276,7 +276,7 @@ static void DrawCatenaryRailway(const TileInfo *ti) * Faking a flat slope results in the correct sprites on positions. */ Corner halftile_corner = CORNER_INVALID; if (IsHalftileSlope(tileh[TS_HOME])) { - halftile_corner = GetHighestSlopeCorner(tileh[TS_HOME]); + halftile_corner = GetHalftileSlopeCorner(tileh[TS_HOME]); tileh[TS_HOME] = SLOPE_FLAT; }