Use bool constants with map_name_popup task fields

This commit is contained in:
PikalaxALT
2020-03-30 17:51:54 -04:00
parent b31317889d
commit bfd4165ca0
+4 -4
View File
@@ -47,7 +47,7 @@ void ShowMapNamePopup(bool32 palIntoFadedBuffer)
{ {
if (gTasks[taskId].tState != 4) if (gTasks[taskId].tState != 4)
gTasks[taskId].tState = 4; gTasks[taskId].tState = 4;
gTasks[taskId].tReshow = 1; gTasks[taskId].tReshow = TRUE;
} }
} }
} }
@@ -59,7 +59,7 @@ static void Task_MapNamePopup(u8 taskId)
{ {
case 0: case 0:
task->tWindowId = MapNamePopupCreateWindow(task->tPalIntoFadedBuffer); task->tWindowId = MapNamePopupCreateWindow(task->tPalIntoFadedBuffer);
task->tWindowExists = 1; task->tWindowExists = TRUE;
task->tState = 1; task->tState = 1;
break; break;
case 1: case 1:
@@ -91,7 +91,7 @@ static void Task_MapNamePopup(u8 taskId)
MapNamePopupPrintMapNameOnWindow(task->tWindowId); MapNamePopupPrintMapNameOnWindow(task->tWindowId);
CopyWindowToVram(task->tWindowId, 2); CopyWindowToVram(task->tWindowId, 2);
task->tState = 1; task->tState = 1;
task->tReshow = 0; task->tReshow = FALSE;
} }
else else
{ {
@@ -117,7 +117,7 @@ static void Task_MapNamePopup(u8 taskId)
{ {
RemoveWindow(task->tWindowId); RemoveWindow(task->tWindowId);
task->tWindowExists = FALSE; task->tWindowExists = FALSE;
task->tWindowDestroyed = 1; task->tWindowDestroyed = TRUE;
} }
task->tState = 8; task->tState = 8;
ChangeBgY(0, 0x00000000, 0); ChangeBgY(0, 0x00000000, 0);