summaryrefslogtreecommitdiff
path: root/src/pokeblock.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-02-28 10:27:50 -0500
committerGitHub <noreply@github.com>2021-02-28 10:27:50 -0500
commit3f5936239785c8dae923e1f5c4bb91492e67cb5a (patch)
treecb0c74dc4a2c09551e1b6699b7c71ed7dc7c85d7 /src/pokeblock.c
parent763724a98046c81da15dd5a5877ad30adb8129ba (diff)
parentea748ff7f51a7c119658930f878d046cc8b83c51 (diff)
Merge branch 'master' into doc-pokejump
Diffstat (limited to 'src/pokeblock.c')
-rw-r--r--src/pokeblock.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pokeblock.c b/src/pokeblock.c
index 4485fe1ef..ee546deda 100644
--- a/src/pokeblock.c
+++ b/src/pokeblock.c
@@ -432,7 +432,7 @@ void OpenPokeblockCase(u8 caseId, void (*callback)(void))
sPokeblockMenu = Alloc(sizeof(*sPokeblockMenu));
sPokeblockMenu->caseId = caseId;
sPokeblockMenu->callbackOnUse = NULL;
- sPokeblockMenu->unkTaskId = 0xFF;
+ sPokeblockMenu->unkTaskId = TASK_NONE;
sPokeblockMenu->isSwapping = FALSE;
sSavedPokeblockData.callback = callback;
@@ -581,11 +581,11 @@ static bool8 InitPokeblockMenu(void)
gMain.state++;
break;
case 17:
- BlendPalettes(-1, 0x10, 0);
+ BlendPalettes(PALETTES_ALL, 0x10, 0);
gMain.state++;
break;
case 18:
- BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
+ BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
gPaletteFade.bufferTransferDisabled = 0;
gMain.state++;
break;
@@ -898,7 +898,7 @@ static void sub_8136344(void)
static void sub_81363BC(void)
{
- if (sPokeblockMenu->unkTaskId == 0xFF)
+ if (sPokeblockMenu->unkTaskId == TASK_NONE)
{
sPokeblockMenu->unkTaskId = AddScrollIndicatorArrowPairParameterized(SCROLL_ARROW_UP, 0xB0, 8, 0x98, sPokeblockMenu->itemsNo - sPokeblockMenu->maxShowed,
0x456, 0x456, &sSavedPokeblockData.lastItemPage);
@@ -907,10 +907,10 @@ static void sub_81363BC(void)
static void sub_8136418(void)
{
- if (sPokeblockMenu->unkTaskId != 0xFF)
+ if (sPokeblockMenu->unkTaskId != TASK_NONE)
{
RemoveScrollIndicatorArrowPair(sPokeblockMenu->unkTaskId);
- sPokeblockMenu->unkTaskId = 0xFF;
+ sPokeblockMenu->unkTaskId = TASK_NONE;
}
}
@@ -948,7 +948,7 @@ static void sub_8136470(struct Sprite *sprite)
static void FadePaletteAndSetTaskToClosePokeblockCase(u8 taskId)
{
- BeginNormalPaletteFade(0xFFFFFFFF, 0, 0, 0x10, RGB_BLACK);
+ BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
gTasks[taskId].func = Task_FreeDataAndExitPokeblockCase;
}