summaryrefslogtreecommitdiff
path: root/src/decompress.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-12-30 10:58:42 -0600
committerMarcus Huderle <huderlem@gmail.com>2018-12-30 11:04:17 -0600
commit58f130d007b97623dd5c7a3b373800c138f75c5e (patch)
treee7a84efffa2a698deaa6fa5ae6d791699afc3af5 /src/decompress.c
parent2c2554e2ae791d8e402f29b097e6bdd1a1124458 (diff)
Document some battle anims and helpers
Diffstat (limited to 'src/decompress.c')
-rw-r--r--src/decompress.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/decompress.c b/src/decompress.c
index ed2f7a0bb..949b96990 100644
--- a/src/decompress.c
+++ b/src/decompress.c
@@ -66,7 +66,7 @@ void LoadCompressedSpritePaletteOverrideBuffer(const struct CompressedSpritePale
void DecompressPicFromTable(const struct CompressedSpriteSheet *src, void* buffer, s32 species)
{
- if (species > SPECIES_EGG)
+ if (species > NUM_SPECIES)
LZ77UnCompWram(gMonFrontPicTable[0].data, buffer);
else
LZ77UnCompWram(src->data, buffer);
@@ -102,7 +102,7 @@ void LoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *dest, s32
else
LZ77UnCompWram(gMonFrontPicTable[i].data, dest);
}
- else if (species > SPECIES_EGG) // is species unknown? draw the ? icon
+ else if (species > NUM_SPECIES) // is species unknown? draw the ? icon
LZ77UnCompWram(gMonFrontPicTable[0].data, dest);
else
LZ77UnCompWram(src->data, dest);
@@ -499,7 +499,7 @@ bool8 LoadCompressedSpritePaletteUsingHeap(const struct CompressedSpritePalette
void DecompressPicFromTable_2(const struct CompressedSpriteSheet *src, void* buffer, s32 species) // a copy of DecompressPicFromTable
{
- if (species > SPECIES_EGG)
+ if (species > NUM_SPECIES)
LZ77UnCompWram(gMonFrontPicTable[0].data, buffer);
else
LZ77UnCompWram(src->data, buffer);
@@ -523,7 +523,7 @@ void LoadSpecialPokePic_2(const struct CompressedSpriteSheet *src, void *dest, s
else
LZ77UnCompWram(gMonFrontPicTable[i].data, dest);
}
- else if (species > SPECIES_EGG) // is species unknown? draw the ? icon
+ else if (species > NUM_SPECIES) // is species unknown? draw the ? icon
LZ77UnCompWram(gMonFrontPicTable[0].data, dest);
else
LZ77UnCompWram(src->data, dest);
@@ -546,7 +546,7 @@ void HandleLoadSpecialPokePic_2(const struct CompressedSpriteSheet *src, void *d
void DecompressPicFromTable_DontHandleDeoxys(const struct CompressedSpriteSheet *src, void* buffer, s32 species)
{
- if (species > SPECIES_EGG)
+ if (species > NUM_SPECIES)
LZ77UnCompWram(gMonFrontPicTable[0].data, buffer);
else
LZ77UnCompWram(src->data, buffer);
@@ -581,7 +581,7 @@ void LoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteSheet *src
else
LZ77UnCompWram(gMonFrontPicTable[i].data, dest);
}
- else if (species > SPECIES_EGG) // is species unknown? draw the ? icon
+ else if (species > NUM_SPECIES) // is species unknown? draw the ? icon
LZ77UnCompWram(gMonFrontPicTable[0].data, dest);
else
LZ77UnCompWram(src->data, dest);