diff options
author | celestar <celestar@openttd.org> | 2005-07-16 23:47:37 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-07-16 23:47:37 +0000 |
commit | de19186be3001000286e0893cd0e2da2f3f5925d (patch) | |
tree | b32b3e56573203f32982f2fc2b3966529a6d1857 /industry_cmd.c | |
parent | 594dd34e84e78b03e1cdeb7cf262707fd714a5fa (diff) | |
download | openttd-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 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 410d35cf0..066f2d58b 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1339,7 +1339,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable } else { if (ti.type == MP_WATER && ti.map5 == 0) return false; - if (ti.tileh & 0x10) + if (IsSteepTileh(ti.tileh)) return false; if (ti.tileh != 0) { |