0

moved lighting check from world object to quadtree object, where it should be now

This commit is contained in:
Aaron Griffith
2011-03-21 05:35:11 -04:00
parent c603f2344f
commit fd0924a93b
3 changed files with 3 additions and 4 deletions

View File

@@ -550,7 +550,7 @@ class ChunkRenderer(object):
if not img:
img = Image.new("RGBA", (384, 1728), (38,92,255,0))
if self.world.lighting:
if self.quadtree.lighting:
c_overviewer.render_loop_lighting(self, img, xoff, yoff, blockData_expanded)
else:
c_overviewer.render_loop(self, img, xoff, yoff, blockData_expanded)

View File

@@ -157,7 +157,7 @@ def main():
logging.info("Notice: Not using biome data for tinting")
# First do world-level preprocessing
w = world.World(worlddir, useBiomeData=useBiomeData, lighting=options.lighting)
w = world.World(worlddir, useBiomeData=useBiomeData)
w.go(options.procs)
# create the quadtrees

View File

@@ -67,10 +67,9 @@ class World(object):
mincol = maxcol = minrow = maxrow = 0
def __init__(self, worlddir, useBiomeData=False,regionlist=None, lighting=False):
def __init__(self, worlddir, useBiomeData=False,regionlist=None):
self.worlddir = worlddir
self.useBiomeData = useBiomeData
self.lighting = lighting
#find region files, or load the region list
#this also caches all the region file header info