summaryrefslogtreecommitdiff
path: root/tree_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-16 23:47:37 +0000
committercelestar <celestar@openttd.org>2005-07-16 23:47:37 +0000
commitde19186be3001000286e0893cd0e2da2f3f5925d (patch)
treeb32b3e56573203f32982f2fc2b3966529a6d1857 /tree_cmd.c
parent594dd34e84e78b03e1cdeb7cf262707fd714a5fa (diff)
downloadopenttd-de19186be3001000286e0893cd0e2da2f3f5925d.tar.xz
(svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is steep
(i.e. spans two height levels) and use it throughout the code. -Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to build a depot on it. Wraps some bitmagic which seems quite unreadable at first glance
Diffstat (limited to 'tree_cmd.c')
-rw-r--r--tree_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree_cmd.c b/tree_cmd.c
index 179205670..ce9cd320c 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -289,7 +289,7 @@ static void DrawTile_Trees(TileInfo *ti)
z = ti->z;
if (ti->tileh != 0) {
z += 4;
- if (ti->tileh & 0x10)
+ if (IsSteepTileh(ti->tileh))
z += 4;
}