Rename temp_notNationalDex to temp_isHoennDex.

Don't use hexadecimal format for x and y args.
This commit is contained in:
Meowsy 2018-12-15 18:34:06 -05:00
parent 3d8cecb662
commit 6ed8e4d6ed

View File

@ -1890,7 +1890,7 @@ void sub_80BC8D4(u8 dexMode, u8 sortMode)
{ {
u16 vars[3]; //I have no idea why three regular variables are stored in an array, but whatever. u16 vars[3]; //I have no idea why three regular variables are stored in an array, but whatever.
#define temp_dexCount vars[0] #define temp_dexCount vars[0]
#define temp_notNationalDex vars[1] #define temp_isHoennDex vars[1]
#define temp_dexNum vars[2] #define temp_dexNum vars[2]
s16 i; s16 i;
@ -1901,18 +1901,18 @@ void sub_80BC8D4(u8 dexMode, u8 sortMode)
default: default:
case DEX_MODE_HOENN: case DEX_MODE_HOENN:
temp_dexCount = HOENN_DEX_COUNT; temp_dexCount = HOENN_DEX_COUNT;
temp_notNationalDex = TRUE; temp_isHoennDex = TRUE;
break; break;
case DEX_MODE_NATIONAL: case DEX_MODE_NATIONAL:
if (IsNationalPokedexEnabled()) if (IsNationalPokedexEnabled())
{ {
temp_dexCount = NATIONAL_DEX_COUNT; temp_dexCount = NATIONAL_DEX_COUNT;
temp_notNationalDex = FALSE; temp_isHoennDex = FALSE;
} }
else else
{ {
temp_dexCount = HOENN_DEX_COUNT; temp_dexCount = HOENN_DEX_COUNT;
temp_notNationalDex = TRUE; temp_isHoennDex = TRUE;
} }
break; break;
} }
@ -1920,7 +1920,7 @@ void sub_80BC8D4(u8 dexMode, u8 sortMode)
switch (sortMode) switch (sortMode)
{ {
case 0: case 0:
if (temp_notNationalDex) if (temp_isHoennDex)
{ {
for (i = 0; i < temp_dexCount; i++) for (i = 0; i < temp_dexCount; i++)
{ {
@ -2957,7 +2957,7 @@ void sub_80BEA24(u8 taskId)
case 5: case 5:
if (gTasks[taskId].data[1] == 0) if (gTasks[taskId].data[1] == 0)
{ {
gTasks[taskId].data[4] = (u16)CreateMonSpriteFromNationalDexNumber(sPokedexListItem->dexNum, 0x30, 0x38, 0); gTasks[taskId].data[4] = (u16)CreateMonSpriteFromNationalDexNumber(sPokedexListItem->dexNum, 48, 56, 0);
gSprites[gTasks[taskId].data[4]].oam.priority = 0; gSprites[gTasks[taskId].data[4]].oam.priority = 0;
} }
gMain.state++; gMain.state++;
@ -3784,7 +3784,7 @@ void sub_80BFE38(u8 taskId)
gTasks[taskId].data[0]++; gTasks[taskId].data[0]++;
break; break;
case 4: case 4:
spriteId = CreateMonSpriteFromNationalDexNumber(dexNum, 0x30, 0x38, 0); spriteId = CreateMonSpriteFromNationalDexNumber(dexNum, 48, 56, 0);
gSprites[spriteId].oam.priority = 0; gSprites[spriteId].oam.priority = 0;
BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK); BeginNormalPaletteFade(0xFFFFFFFF, 0, 0x10, 0, RGB_BLACK);
SetVBlankCallback(gUnknown_030060B4); SetVBlankCallback(gUnknown_030060B4);