From 5bf040f38da16f391b91b1d0b30796aa0162df58 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Fri, 2 Jun 2023 11:56:12 -0400 Subject: [PATCH] Missing pret improvement that was causing unmatching --- src/pokedex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pokedex.c b/src/pokedex.c index 5b04145131..13fea29795 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -4552,7 +4552,9 @@ static void DrawFootprint(u8 windowId, u16 dexNum) // so we need 4 iterations to do all 8 pixels. for (j = 0; j < 4; j++) { - u8 tile = ((footprint1bpp >> (2 * j)) & 1 ? 2 : 0); + u8 tile = 0; + if (footprint1bpp & (1 << (2 * j))) + tile |= FOOTPRINT_COLOR_IDX; // Set pixel if (footprint1bpp & (2 << (2 * j))) tile |= FOOTPRINT_COLOR_IDX << 4; // Set pixel footprint4bpp[tileIdx] = tile;