From 810ecaf6db4e587f323fec183ff5e982c76b2a9b Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Mon, 13 Dec 2010 21:38:19 +1000 Subject: [PATCH] Use the proper find_oldimage() --- world.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/world.py b/world.py index 522a99d..919190b 100644 --- a/world.py +++ b/world.py @@ -289,8 +289,7 @@ class WorldRenderer(object): for i, (col, row, chunkfile) in enumerate(chunks): if inclusion_set and (col, row) not in inclusion_set: # Skip rendering, just find where the existing image is - _, imgpath = chunk.ChunkRenderer(chunkfile, - self.cachedir, self, q).find_oldimage(False) + _, imgpath = chunk.find_oldimage(chunkfile, cached, self.caves) if imgpath: results[(col, row)] = imgpath continue @@ -320,8 +319,7 @@ class WorldRenderer(object): for col, row, chunkfile in chunks: if inclusion_set and (col, row) not in inclusion_set: # Skip rendering, just find where the existing image is - _, imgpath = chunk.ChunkRenderer(chunkfile, - self.cachedir, self, q).find_oldimage(False) + _, imgpath = chunk.find_oldimage(chunkfile, cached, self.caves) if imgpath: results[(col, row)] = imgpath continue