tree_cmd.c
changeset 3017 915fae59d5e0
parent 3003 15a000f2b81d
child 3076 9584f34a83dc
equal deleted inserted replaced
3016:c63fb93fa1a0 3017:915fae59d5e0
   536 void OnTick_Trees(void)
   536 void OnTick_Trees(void)
   537 {
   537 {
   538 	uint32 r;
   538 	uint32 r;
   539 	TileIndex tile;
   539 	TileIndex tile;
   540 	ClearGround ct;
   540 	ClearGround ct;
   541 	int tree;
   541 	TreeType tree;
   542 
   542 
   543 	/* place a tree at a random rainforest spot */
   543 	/* place a tree at a random rainforest spot */
   544 	if (_opt.landscape == LT_DESERT &&
   544 	if (_opt.landscape == LT_DESERT &&
   545 			(r = Random(), tile = RandomTileSeed(r), GetMapExtraBits(tile) == 2) &&
   545 			(r = Random(), tile = RandomTileSeed(r), GetMapExtraBits(tile) == 2) &&
   546 			IsTileType(tile, MP_CLEAR) &&
   546 			IsTileType(tile, MP_CLEAR) &&