summaryrefslogtreecommitdiff
path: root/src/elrail.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 13:40:59 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 13:40:59 +0000
commit9782b7bb0af914d749b125c3a0ae56cccc99c8e3 (patch)
tree3c96c798077d2903e39a390e2d7e79c7b2e6e836 /src/elrail.cpp
parent81f583de4775858ec78b66b4e9bea6ce9952c5b9 (diff)
downloadopenttd-9782b7bb0af914d749b125c3a0ae56cccc99c8e3.tar.xz
(svn r23110) -Codechange: let the flying altitude return ints are well
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 3734b919b..9aedfc6e5 100644
--- a/src/elrail.cpp
+++ b/src/elrail.cpp
@@ -315,7 +315,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
};
SpriteID pylon_base = (halftile_corner != CORNER_INVALID && HasBit(edge_corners[i], halftile_corner)) ? pylon_halftile : pylon_normal;
TileIndex neighbour = ti->tile + TileOffsByDiagDir(i);
- byte elevation = GetPCPElevation(ti->tile, i);
+ int elevation = GetPCPElevation(ti->tile, i);
/* 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.*/