diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:22:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:22:27 +0000 |
commit | 2ed0f93bfbd27ba4b4dc3e590556ffae6d9b9338 (patch) | |
tree | 9086d7e7b83871e60d43d838fd5f005ef50c5063 /src/elrail.cpp | |
parent | a36551dbb4a6aa8a10e99df8331ac4ecb8586270 (diff) | |
download | openttd-2ed0f93bfbd27ba4b4dc3e590556ffae6d9b9338.tar.xz |
(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index b85cfcadb..eda206356 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -317,9 +317,9 @@ static void DrawCatenaryRailway(const TileInfo *ti) TileIndex neighbour = ti->tile + TileOffsByDiagDir(i); byte elevation = GetPCPElevation(ti->tile, i); - /* Here's one of the main headaches. GetTilePixelSlope does not correct for possibly + /* Here's one of the main headaches. GetTileSlope does not correct for possibly * existing foundataions, so we do have to do that manually later on.*/ - tileh[TS_NEIGHBOUR] = GetTilePixelSlope(neighbour, NULL); + tileh[TS_NEIGHBOUR] = GetTileSlope(neighbour); trackconfig[TS_NEIGHBOUR] = GetRailTrackBitsUniversal(neighbour, NULL); wireconfig[TS_NEIGHBOUR] = MaskWireBits(neighbour, trackconfig[TS_NEIGHBOUR]); if (IsTunnelTile(neighbour) && i != GetTunnelBridgeDirection(neighbour)) wireconfig[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] = TRACK_BIT_NONE; |