summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-03-30 17:51:54 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-03-30 17:51:54 -0400
commitbfd4165ca03d343dcb290aa30263b8a8425751dd (patch)
treeef93be8c1de62fe0608c5077f408ffdd08db2e5b /src
parentb31317889d2b75fc486eb801596e0fb31364387b (diff)
Use bool constants with map_name_popup task fields
Diffstat (limited to 'src')
-rw-r--r--src/map_name_popup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map_name_popup.c b/src/map_name_popup.c
index b7b9f85eb..6f7fa5d3c 100644
--- a/src/map_name_popup.c
+++ b/src/map_name_popup.c
@@ -47,7 +47,7 @@ void ShowMapNamePopup(bool32 palIntoFadedBuffer)
{
if (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:
task->tWindowId = MapNamePopupCreateWindow(task->tPalIntoFadedBuffer);
- task->tWindowExists = 1;
+ task->tWindowExists = TRUE;
task->tState = 1;
break;
case 1:
@@ -91,7 +91,7 @@ static void Task_MapNamePopup(u8 taskId)
MapNamePopupPrintMapNameOnWindow(task->tWindowId);
CopyWindowToVram(task->tWindowId, 2);
task->tState = 1;
- task->tReshow = 0;
+ task->tReshow = FALSE;
}
else
{
@@ -117,7 +117,7 @@ static void Task_MapNamePopup(u8 taskId)
{
RemoveWindow(task->tWindowId);
task->tWindowExists = FALSE;
- task->tWindowDestroyed = 1;
+ task->tWindowDestroyed = TRUE;
}
task->tState = 8;
ChangeBgY(0, 0x00000000, 0);