diff options
author | rubidium <rubidium@openttd.org> | 2011-11-02 22:09:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-02 22:09:07 +0000 |
commit | 07cb2fd9a8a5a37e882c2f643d55a6252b534265 (patch) | |
tree | 0fac3101baa50a09eb90980a75155de7dc628246 /src | |
parent | 0ded3f590454f762609fedda8f9230a8be9fe1e4 (diff) | |
download | openttd-07cb2fd9a8a5a37e882c2f643d55a6252b534265.tar.xz |
(svn r23082) -Fix: account for snow line table when determining the snow line for building houses
Diffstat (limited to 'src')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index c76ca9fff..550f85dcf 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2104,7 +2104,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile) /* Above snow? */ int land = _settings_game.game_creation.landscape; - if (land == LT_ARCTIC && z >= _settings_game.game_creation.snow_line) land = -1; + if (land == LT_ARCTIC && z >= HighestSnowLine()) land = -1; uint bitmask = (1 << rad) + (1 << (land + 12)); |