Remove uses of INVALID_ defines, clean up some arrays with constants, and spaces -> tabs
This commit is contained in:
@@ -435,7 +435,7 @@ void OpenPokeblockCase(u8 caseId, void (*callback)(void))
|
||||
sPokeblockMenu = Alloc(sizeof(*sPokeblockMenu));
|
||||
sPokeblockMenu->caseId = caseId;
|
||||
sPokeblockMenu->callbackOnUse = NULL;
|
||||
sPokeblockMenu->unkTaskId = INVALID_U8;
|
||||
sPokeblockMenu->unkTaskId = 0xFF;
|
||||
sPokeblockMenu->isSwapping = FALSE;
|
||||
sSavedPokeblockData.callback = callback;
|
||||
|
||||
@@ -901,7 +901,7 @@ static void sub_8136344(void)
|
||||
|
||||
static void sub_81363BC(void)
|
||||
{
|
||||
if (sPokeblockMenu->unkTaskId == INVALID_U8)
|
||||
if (sPokeblockMenu->unkTaskId == 0xFF)
|
||||
{
|
||||
sPokeblockMenu->unkTaskId = AddScrollIndicatorArrowPairParameterized(SCROLL_ARROW_UP, 0xB0, 8, 0x98, sPokeblockMenu->itemsNo - sPokeblockMenu->maxShowed,
|
||||
0x456, 0x456, &sSavedPokeblockData.lastItemPage);
|
||||
@@ -910,10 +910,10 @@ static void sub_81363BC(void)
|
||||
|
||||
static void sub_8136418(void)
|
||||
{
|
||||
if (sPokeblockMenu->unkTaskId != INVALID_U8)
|
||||
if (sPokeblockMenu->unkTaskId != 0xFF)
|
||||
{
|
||||
RemoveScrollIndicatorArrowPair(sPokeblockMenu->unkTaskId);
|
||||
sPokeblockMenu->unkTaskId = INVALID_U8;
|
||||
sPokeblockMenu->unkTaskId = 0xFF;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1016,7 +1016,7 @@ static void Task_HandlePokeblockMenuInput(u8 taskId)
|
||||
break;
|
||||
case LIST_B_PRESSED:
|
||||
PlaySE(SE_SELECT);
|
||||
gSpecialVar_Result = INVALID_U16;
|
||||
gSpecialVar_Result = 0xFFFF;
|
||||
gSpecialVar_ItemId = 0;
|
||||
FadePaletteAndSetTaskToClosePokeblockCase(taskId);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user