summaryrefslogtreecommitdiff
path: root/industry_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 /industry_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 'industry_cmd.c')
-rw-r--r--industry_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 4026f7c4d..27ecedd41 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -399,7 +399,7 @@ static void DrawTile_Industry(TileInfo *ti)
static uint GetSlopeZ_Industry(const TileInfo* ti)
{
- return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
+ return ti->z + (ti->tileh == 0 ? 0 : 8);
}
static uint GetSlopeTileh_Industry(const TileInfo* ti)