Changeset - r16120:e93ec40df207
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-09-18 20:36:13
terkhen@openttd.org
(svn r20826) -Codechange: Simplify code for generating more trees above the snowline.
1 file changed with 2 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/tree_cmd.cpp
Show inline comments
 
@@ -276,13 +276,9 @@ void PlaceTreesRandomly()
 
			ht = GetTileZ(tile);
 
			/* The higher we get, the more trees we plant */
 
			j = GetTileZ(tile) / TILE_HEIGHT * 2;
 
			/* Above snowline more trees! */
 
			if (_settings_game.game_creation.landscape == LT_ARCTIC && ht > GetSnowLine()) j *= 3;
 
			while (j--) {
 
				/* Above snowline more trees! */
 
				if (_settings_game.game_creation.landscape == LT_ARCTIC && ht > GetSnowLine()) {
 
					PlaceTreeAtSameHeight(tile, ht);
 
					PlaceTreeAtSameHeight(tile, ht);
 
				};
 

	
 
				PlaceTreeAtSameHeight(tile, ht);
 
			}
 
		}
0 comments (0 inline, 0 general)