(svn r9400) -Codechange: Use some more representative enum names for landscape types.

This commit is contained in:
belugas
2007-03-22 03:42:43 +00:00
parent 6e9ab4f7b8
commit 06d3669bb5
30 changed files with 125 additions and 125 deletions

View File

@@ -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;
}
}