summaryrefslogtreecommitdiff
path: root/src/elrail.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-07-12 18:15:37 +0000
committerfrosch <frosch@openttd.org>2010-07-12 18:15:37 +0000
commit0a026ff41fe054d40f02d138dcbe6e8ed8240fa1 (patch)
tree087ba0def460d4e7be89d2dbfc220a290811a6ce /src/elrail.cpp
parent6e7a8dfd86cf343e2b5150a267027e9784899b13 (diff)
downloadopenttd-0a026ff41fe054d40f02d138dcbe6e8ed8240fa1.tar.xz
(svn r20132) -Fix [FS#3944](r20126): There can also be halftile foundations on slopes with opposite corners raised.
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r--src/elrail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp
index 757790312..3a4275ddd 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;
}