diff options
author | yenatch <yenatch@gmail.com> | 2014-10-02 23:47:00 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-10-02 23:47:00 -0400 |
commit | c9d9a16fd64eb315b2b502596b1ffef9532ebde9 (patch) | |
tree | 4bd2b9fd5b4218ed9d1a3fd58bc22b84faa24aa9 /pokemontools/map_editor.py | |
parent | 0a68945a485ea3093eec9fc5fa75d3286595b053 (diff) |
map_editor: Fix automatic graphics decompression.
Diffstat (limited to 'pokemontools/map_editor.py')
-rw-r--r-- | pokemontools/map_editor.py | 4 |
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 = [] |