(svn r23082) -Fix: account for snow line table when determining the snow line for building houses

This commit is contained in:
rubidium 2011-11-02 22:09:07 +00:00
parent 0ded3f5904
commit 07cb2fd9a8
1 changed files with 1 additions and 1 deletions

View File

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