filled in render call to tileset's render_rendertile()

This commit is contained in:
Andrew Brown 2012-01-01 23:20:08 -05:00
parent 31f894d4e9
commit 252e8ab33d
1 changed files with 3 additions and 2 deletions

View File

@ -804,7 +804,7 @@ class TileSet(object):
# col colstart will get drawn on the image starting at x coordinates -(384/2)
# row rowstart will get drawn on the image starting at y coordinates -(192/2)
max_chunk_mtime = 0
for col, row, chunkx, chunky, chunk_mtime in chunks:
for col, row, chunkx, chunkz, chunk_mtime in chunks:
xpos = -192 + (col-colstart)*192
ypos = -96 + (row-rowstart)*96
@ -812,7 +812,8 @@ class TileSet(object):
max_chunk_mtime = chunk_mtime
# draw the chunk!
# TODO RENDER THE CHUNK
c_renderer.render_loop(self.regionset, chunkx, chunkz, tileimg,
xpos, ypos, self.options['rendermode'], self.textures)
# Save them
if self.imgformat == 'jpg':