summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-10-02 23:47:00 -0400
committeryenatch <yenatch@gmail.com>2014-10-02 23:47:00 -0400
commitc9d9a16fd64eb315b2b502596b1ffef9532ebde9 (patch)
tree4bd2b9fd5b4218ed9d1a3fd58bc22b84faa24aa9
parent0a68945a485ea3093eec9fc5fa75d3286595b053 (diff)
map_editor: Fix automatic graphics decompression.
-rw-r--r--pokemontools/map_editor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pokemontools/map_editor.py b/pokemontools/map_editor.py
index 184d3bb..ff5323a 100644
--- a/pokemontools/map_editor.py
+++ b/pokemontools/map_editor.py
@@ -577,7 +577,9 @@ class Tileset:
def get_tiles(self):
filename = self.get_tileset_gfx_filename()
if not os.path.exists(filename):
- gfx.export_2bpp_to_png(filename.replace('.png','.2bpp'))
+ # Crystal still isn't ready for pngs.
+ if self.config.version == 'crystal':
+ gfx.convert_to_png([filename.replace('.png', '.2bpp.lz')])
self.img = Image.open(filename)
self.img.width, self.img.height = self.img.size
self.tiles = []