From dbb4acf045a686c19571be34b4f9987630953a97 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 28 Oct 2020 07:53:31 +0100 Subject: [PATCH] fix accidental sprite palette overrides --- Rom.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Rom.py b/Rom.py index 10e01ec5..748e9040 100644 --- a/Rom.py +++ b/Rom.py @@ -597,9 +597,7 @@ class Sprite(object): def expand_color(i): return ((i & 0x1F) * 8, (i >> 5 & 0x1F) * 8, (i >> 10 & 0x1F) * 8) - raw_palette = self.palette - if raw_palette is None: - raw_palette = Sprite.default_palette + raw_palette = Sprite.palette[:] # copy # turn palette data into a list of RGB tuples with 8 bit values palette_as_colors = [expand_color(make_int16(chnk)) for chnk in array_chunk(raw_palette, 2)]