(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 2e3d32decc
commit c465c79f09

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