summaryrefslogtreecommitdiff
path: root/src/town_cmd.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/town_cmd.cpp
parent6e9ab4f7b8ceefa99ee2e074b0fb814d8ece3740 (diff)
downloadopenttd-06d3669bb54143c588bd7b3abddbbb79582c94ee.tar.xz
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 115d02d42..004fce6bd 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1231,7 +1231,7 @@ static void DoBuildTownHouse(Town *t, TileIndex tile)
uint rad = GetTownRadiusGroup(t, tile);
int land = _opt.landscape;
- if (land == LT_HILLY && z >= _opt.snow_line) land = -1;
+ if (land == LT_ARCTIC && z >= _opt.snow_line) land = -1;
bitmask = (1 << rad) + (1 << (land + 12));
}
@@ -1698,10 +1698,10 @@ static void UpdateTownGrowRate(Town *t)
m = _grow_count_values[min(n, 5) - 1];
}
- if (_opt.landscape == LT_HILLY) {
+ if (_opt.landscape == LT_ARCTIC) {
if (TilePixelHeight(t->xy) >= GetSnowLine() && t->act_food == 0 && t->population > 90)
return;
- } else if (_opt.landscape == LT_DESERT) {
+ } else if (_opt.landscape == LT_TROPIC) {
if (GetTropicZone(t->xy) == TROPICZONE_DESERT && (t->act_food==0 || t->act_water==0) && t->population > 60)
return;
}