fixes so the last commit runs on maps that need work
This commit is contained in:
@@ -261,7 +261,7 @@ class QuadtreeGen(object):
|
|||||||
# This quadtree object gets replaced by the caller in rendernode.py,
|
# This quadtree object gets replaced by the caller in rendernode.py,
|
||||||
# but we still have to let them know which quadtree this tile belongs
|
# but we still have to let them know which quadtree this tile belongs
|
||||||
# to. Hence returning both self and the tile.
|
# to. Hence returning both self and the tile.
|
||||||
return ((self, tile) for tile in self.scan_chunks())
|
return ([self, tile] for tile in self.scan_chunks())
|
||||||
|
|
||||||
def get_innertiles(self,zoom):
|
def get_innertiles(self,zoom):
|
||||||
"""Same as get_worldtiles but for the inntertile routine.
|
"""Same as get_worldtiles but for the inntertile routine.
|
||||||
@@ -339,8 +339,6 @@ class QuadtreeGen(object):
|
|||||||
if self.optimizeimg:
|
if self.optimizeimg:
|
||||||
optimize_image(imgpath, self.imgformat, self.optimizeimg)
|
optimize_image(imgpath, self.imgformat, self.optimizeimg)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def render_worldtile(self, tile, check_tile=False):
|
def render_worldtile(self, tile, check_tile=False):
|
||||||
"""Renders the given tile. All the other relevant information is
|
"""Renders the given tile. All the other relevant information is
|
||||||
already stored in this quadtree object or in self.world.
|
already stored in this quadtree object or in self.world.
|
||||||
@@ -651,7 +649,7 @@ class DirtyTiles(object):
|
|||||||
for c, child in enumerate(self.children):
|
for c, child in enumerate(self.children):
|
||||||
if child == True:
|
if child == True:
|
||||||
# All dirty down this subtree, iterate over every leaf
|
# All dirty down this subtree, iterate over every leaf
|
||||||
for x in quadtree.iterate_base4(self.level-1):
|
for x in iterate_base4(self.level-1):
|
||||||
x = list(x)
|
x = list(x)
|
||||||
x.append(c)
|
x.append(c)
|
||||||
yield x
|
yield x
|
||||||
|
|||||||
Reference in New Issue
Block a user