From de19186be3001000286e0893cd0e2da2f3f5925d Mon Sep 17 00:00:00 2001 From: celestar Date: Sat, 16 Jul 2005 23:47:37 +0000 Subject: (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 --- tree_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tree_cmd.c') 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; } -- cgit v1.2.3-54-g00ecf