summaryrefslogtreecommitdiff
path: root/tree_cmd.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-13 18:27:33 +0000
committerdominik <dominik@openttd.org>2004-08-13 18:27:33 +0000
commitca120eedad11f826b63bb5505a0f1f61aad740d4 (patch)
tree5791137b0f2b6552ea4bc03afa5cadaf28cf52de /tree_cmd.c
parentecb6f670b0dc4b522fd712657db125162689cf4f (diff)
downloadopenttd-ca120eedad11f826b63bb5505a0f1f61aad740d4.tar.xz
(svn r40) Final slope graphics fix
Diffstat (limited to 'tree_cmd.c')
-rw-r--r--tree_cmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index da1bbe3d2..62761a472 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -332,6 +332,10 @@ static uint GetSlopeZ_Trees(TileInfo *ti) {
return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z;
}
+static uint GetSlopeTileh_Trees(TileInfo *ti) {
+ return ti->tileh;
+}
+
static int32 ClearTile_Trees(uint tile, byte flags) {
int num;
@@ -644,4 +648,5 @@ const TileTypeProcs _tile_type_trees_procs = {
NULL, /* get_produced_cargo_proc */
NULL, /* vehicle_enter_tile_proc */
NULL, /* vehicle_leave_tile_proc */
+ GetSlopeTileh_Trees, /* get_slope_tileh_proc */
};