(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:
celestar
2005-07-16 23:47:37 +00:00
parent 594dd34e84
commit de19186be3
11 changed files with 87 additions and 19 deletions

View File

@@ -669,7 +669,7 @@ static void DrawTileSelection(const TileInfo *ti)
byte z = ti->z;
if (ti->tileh & 8) {
z += 8;
if (!(ti->tileh & 2) && (ti->tileh & 0x10)) {
if (!(ti->tileh & 2) && (IsSteepTileh(ti->tileh))) {
z += 8;
}
}