Changeset - r19176:dfdbe5936610
[Not reviewed]
master
0 1 0
rubidium - 12 years ago 2012-03-25 18:19:21
rubidium@openttd.org
(svn r24064) -Fix [FS#5121]: make the full snowedness level of houses the same as roads and rails
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -2171,8 +2171,8 @@ static bool BuildTownHouse(Town *t, Tile
 
	/* no house allowed at all, bail out */
 
	if (!CanBuildHouseHere(tile, t->index, false)) return false;
 

	
 
	int z;
 
	Slope slope = GetTileSlope(tile, &z);
 
	Slope slope = GetTileSlope(tile);
 
	int maxz = GetTileMaxZ(tile);
 

	
 
	/* Get the town zone type of the current tile, as well as the climate.
 
	 * This will allow to easily compare with the specs of the new house to build */
 
@@ -2180,7 +2180,7 @@ static bool BuildTownHouse(Town *t, Tile
 

	
 
	/* Above snow? */
 
	int land = _settings_game.game_creation.landscape;
 
	if (land == LT_ARCTIC && z >= HighestSnowLine()) land = -1;
 
	if (land == LT_ARCTIC && maxz > HighestSnowLine()) land = -1;
 

	
 
	uint bitmask = (1 << rad) + (1 << (land + 12));
 

	
 
@@ -2215,7 +2215,6 @@ static bool BuildTownHouse(Town *t, Tile
 
		houses[num++] = (HouseID)i;
 
	}
 

	
 
	int maxz = GetTileMaxZ(tile);
 
	TileIndex baseTile = tile;
 

	
 
	while (probability_max > 0) {
0 comments (0 inline, 0 general)