summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2022-01-17 17:27:17 -0500
committerGriffinR <griffin.g.richards@gmail.com>2022-01-17 17:27:17 -0500
commit30d970441839e8b2473f6962ab9b70f4f8422507 (patch)
treea840e2a7159f5109a2c84e5c83a9e10e36ca8839 /src
parent313f14ed63f52b6b4371cabe858c5cde5705cc0f (diff)
Specify unsigned in spot comment
Diffstat (limited to 'src')
-rw-r--r--src/pokemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index 902d576f7..08a6fd0f9 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -5674,7 +5674,7 @@ u16 SpeciesToCryId(u16 species)
The macro then loops over the 16x16 spot image. For each bit in the spot's binary image, if
the bit is set then it's part of the spot; try to draw it. A pixel is drawn on Spinda if the
- pixel on Spinda satisfies the following formula: (colorIndex - 1 <= 2). The -1 excludes
+ pixel on Spinda satisfies the following formula: ((u8)(colorIndex - 1) <= 2). The -1 excludes
transparent pixels, as these are index 0. Therefore only colors 1, 2, or 3 on Spinda will
allow a spot to be drawn. These color indexes are Spinda's light brown body colors. To create
the spot it adds 4 to the color index, so Spinda's spots will be colors 5, 6, and 7.