summaryrefslogtreecommitdiff
path: root/tree_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-02 12:49:18 +0000
committertron <tron@openttd.org>2006-04-02 12:49:18 +0000
commit7163a64c25e5ad8be4bf261c6fbbd909f75f4de3 (patch)
tree6165bdad32d288513a9323a661873fa96839184c /tree_cmd.c
parented1bd5242d00ec4ddaf40053f7e033dc0d17e0e7 (diff)
downloadopenttd-7163a64c25e5ad8be4bf261c6fbbd909f75f4de3.tar.xz
(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo
Diffstat (limited to 'tree_cmd.c')
-rw-r--r--tree_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 28290c7fe..eb87d7766 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -326,9 +326,9 @@ static uint GetSlopeZ_Trees(const TileInfo* ti)
return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
}
-static uint GetSlopeTileh_Trees(const TileInfo* ti)
+static uint GetSlopeTileh_Trees(TileIndex tile, uint tileh)
{
- return ti->tileh;
+ return tileh;
}
static int32 ClearTile_Trees(TileIndex tile, byte flags)