changeset 18246:ab7b046b027c draft

(svn r23082) -Fix: account for snow line table when determining the snow line for building houses
author rubidium <rubidium@openttd.org>
date Wed, 02 Nov 2011 22:09:07 +0000
parents 5ae9a9954ec1
children 973050b62813
files src/town_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -2104,7 +2104,7 @@
 
 	/* 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));