mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user