0

Use the proper find_oldimage()

This commit is contained in:
Ryan McCue
2010-12-13 21:38:19 +10:00
parent fcfaffffbb
commit 810ecaf6db

View File

@@ -289,8 +289,7 @@ class WorldRenderer(object):
for i, (col, row, chunkfile) in enumerate(chunks): for i, (col, row, chunkfile) in enumerate(chunks):
if inclusion_set and (col, row) not in inclusion_set: if inclusion_set and (col, row) not in inclusion_set:
# Skip rendering, just find where the existing image is # Skip rendering, just find where the existing image is
_, imgpath = chunk.ChunkRenderer(chunkfile, _, imgpath = chunk.find_oldimage(chunkfile, cached, self.caves)
self.cachedir, self, q).find_oldimage(False)
if imgpath: if imgpath:
results[(col, row)] = imgpath results[(col, row)] = imgpath
continue continue
@@ -320,8 +319,7 @@ class WorldRenderer(object):
for col, row, chunkfile in chunks: for col, row, chunkfile in chunks:
if inclusion_set and (col, row) not in inclusion_set: if inclusion_set and (col, row) not in inclusion_set:
# Skip rendering, just find where the existing image is # Skip rendering, just find where the existing image is
_, imgpath = chunk.ChunkRenderer(chunkfile, _, imgpath = chunk.find_oldimage(chunkfile, cached, self.caves)
self.cachedir, self, q).find_oldimage(False)
if imgpath: if imgpath:
results[(col, row)] = imgpath results[(col, row)] = imgpath
continue continue