summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPokeCodec <doremylover456@gmail.com>2020-08-25 16:03:04 -0400
committerPokeCodec <doremylover456@gmail.com>2020-08-25 16:03:04 -0400
commitbf1e261177a4a7177173c631c2da68d3d218f7cd (patch)
tree56830a2b8bf55b5f860e62148a37cb5e92dc3aa8 /src
parentd40870e5f899f0dfc3b706f64aeceb3ea159b5f7 (diff)
Fix mistakes
Diffstat (limited to 'src')
-rw-r--r--src/contest_painting.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/contest_painting.c b/src/contest_painting.c
index 0ea5e8000..789d30006 100644
--- a/src/contest_painting.c
+++ b/src/contest_painting.c
@@ -386,7 +386,7 @@ static void InitContestMonPixels(u16 species, u8 whichSprite)
static void _InitContestMonPixels(u8 *spriteGfx, u16 *palette, u16 (*destPixels)[64][64])
{
- u16 tileY, tileX, pixelY, pixelX, temp;
+ u16 tileY, tileX, pixelY, pixelX;
u8 colorIndex;
for (tileY = 0; tileY < 8; tileY++)
@@ -402,6 +402,7 @@ static void _InitContestMonPixels(u8 *spriteGfx, u16 *palette, u16 (*destPixels)
colorIndex >>= 4;
else
colorIndex &= 0xF; // %=16 works here too. Both match
+
if (colorIndex == 0) // transparent pixel
(*destPixels)[((tileY * 8) + pixelY)][((tileX * 8) + pixelX)] = 0x8000;
else