0

support for mixed png/jpg tilesets, and overlays with imgformat=jpg

This commit is contained in:
Aaron Griffith
2011-04-16 19:25:40 -04:00
parent 26b35906a4
commit 05c4083b7e
5 changed files with 26 additions and 24 deletions

View File

@@ -60,12 +60,12 @@ class QuadtreeGen(object):
"""
assert(imgformat)
self.imgformat = imgformat
self.optimizeimg = optimizeimg
self.lighting = rendermode in ("lighting", "night", "spawn")
self.night = rendermode in ("night", "spawn")
self.spawn = rendermode in ("spawn",)
self.optimizeimg = optimizeimg
self.rendermode = rendermode
# force png renderformat if we're using an overlay mode
if rendermode in chunk.overlay_rendermodes:
self.imgformat = "png"
# Make the destination dir
if not os.path.exists(destdir):