diff options
author | belugas <belugas@openttd.org> | 2007-06-05 01:49:08 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-06-05 01:49:08 +0000 |
commit | a95fdc8bb5fe2baba77c266c2f40ac15a5880bfa (patch) | |
tree | bdd74617d99055e49ce1e28cd9c135ef2da73080 /src/newgrf_house.cpp | |
parent | 9f44031a277a5deb4f7cbc53f1adf5cf9d90dec1 (diff) | |
download | openttd-a95fdc8bb5fe2baba77c266c2f40ac15a5880bfa.tar.xz |
(svn r10040) -Codechange: Make the function GetTerrainType public, as other functions require it
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 2883f9b2d..b36628c2a 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -169,15 +169,6 @@ static uint32 GetNumHouses(HouseID house_id, const Town *town) return map_class_count << 24 | town_class_count << 16 | map_id_count << 8 | town_id_count; } -static uint32 GetTerrainType(TileIndex tile) -{ - switch (_opt.landscape) { - case LT_TROPIC: return GetTropicZone(tile) == TROPICZONE_DESERT ? 1 : 2; - case LT_ARCTIC: return GetTileZ(tile) >= GetSnowLine() ? 4 : 0; - default: return 0; - } -} - static uint32 GetGRFParameter(HouseID house_id, byte parameter) { const HouseSpec *hs = GetHouseSpecs(house_id); |