def get_visible_chunks_from(pos, vision, center=True):
	_center_chunk_key = get_chunk_key_at(pos)
	
	if center:
		_pos = [int(i)+WORLD_INFO['chunk_size']/2 for i in _center_chunk_key.split(',')]
		_pos.append(pos[2])
		pos = _pos[:]
	
	_chunk_keys = []
	for chunk_key in sight._scan_surroundings(_center_chunk_key, WORLD_INFO['chunk_size'], vision, ignore_chunks=0):
		if not chunk_key in WORLD_INFO['chunk_map']:
			continue
		
		if not can_see_chunk_from_pos(pos, chunk_key, vision=vision):
			continue
		
		_chunk_keys.append(chunk_key)
	
	return _chunk_keys
dataset/ETHPy150Open flags/Reactor-3/alife/chunks.py/get_visible_chunks_from/original