summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-03-22 03:42:43 +0000
committerbelugas <belugas@openttd.org>2007-03-22 03:42:43 +0000
commit06d3669bb54143c588bd7b3abddbbb79582c94ee (patch)
tree7d05afaad21b690abc8c07d95e1f62206b11bccd /src/newgrf_house.cpp
parent6e9ab4f7b8ceefa99ee2e074b0fb814d8ece3740 (diff)
downloadopenttd-06d3669bb54143c588bd7b3abddbbb79582c94ee.tar.xz
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 888b5764f..e6ba75693 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -252,8 +252,8 @@ static uint32 GetNumHouses(HouseID house_id, const Town *town)
static uint32 GetTerrainType(TileIndex tile)
{
switch (_opt.landscape) {
- case LT_DESERT: return GetTropicZone(tile) == TROPICZONE_DESERT ? 1 : 2;
- case LT_HILLY: return GetTileZ(tile) >= GetSnowLine() ? 4 : 0;
+ case LT_TROPIC: return GetTropicZone(tile) == TROPICZONE_DESERT ? 1 : 2;
+ case LT_ARCTIC: return GetTileZ(tile) >= GetSnowLine() ? 4 : 0;
default: return 0;
}
}