summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-09-08 00:37:37 +0000
committerbelugas <belugas@openttd.org>2007-09-08 00:37:37 +0000
commit8141fe0898de18d0f6a5e8da7231a1adbe7790da (patch)
tree5fd7f84d1f1cf621befce137e3b39e54392e1adc /src/newgrf_commons.cpp
parent4eef590b15af2611865a96bb6fee0916304bb452 (diff)
downloadopenttd-8141fe0898de18d0f6a5e8da7231a1adbe7790da.tar.xz
(svn r11058) -Fix[FS#1216]: GetTerrainType was a bit too relax with snow line.
After double checking with ttdpatch, behaviour is now more alike (Eddi)
Diffstat (limited to 'src/newgrf_commons.cpp')
-rw-r--r--src/newgrf_commons.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp
index 5d6aa6630..6ffd879e0 100644
--- a/src/newgrf_commons.cpp
+++ b/src/newgrf_commons.cpp
@@ -252,7 +252,7 @@ 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;
+ case LT_ARCTIC: return GetTileZ(tile) > GetSnowLine() ? 4 : 0;
default: return 0;
}
}