summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-21 20:02:05 +0000
committertron <tron@openttd.org>2006-03-21 20:02:05 +0000
commit820b8ca230b5b0a32e75b8b3f636921f3293363f (patch)
tree3dd764e9709bc9811e7667a7182d82eb843bfa22 /station_cmd.c
parenta1758406976f06bb07c5cb5f95ef2c205c6ad1c2 (diff)
downloadopenttd-820b8ca230b5b0a32e75b8b3f636921f3293363f.tar.xz
(svn r3996) -Fix: Slope and height information returned for some tile types is wrong
This leads to graphical glitches when drawing foundations. This doesn't fix all problems, but at least some of them.
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 567a418ff..0e5aec5ef 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -2032,7 +2032,7 @@ void StationPickerDrawSprite(int x, int y, RailType railtype, int image)
static uint GetSlopeZ_Station(const TileInfo* ti)
{
- return (ti->tileh != 0) ? ti->z + 8 : ti->z;
+ return ti->z + (ti->tileh == 0 ? 0 : 8);
}
static uint GetSlopeTileh_Station(const TileInfo *ti)