summaryrefslogtreecommitdiff
path: root/src/pokeblock.c
diff options
context:
space:
mode:
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;
}