summaryrefslogtreecommitdiff
path: root/src/field/region_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/field/region_map.c')
-rw-r--r--src/field/region_map.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/field/region_map.c b/src/field/region_map.c
index a098eb73d..1378820fe 100644
--- a/src/field/region_map.c
+++ b/src/field/region_map.c
@@ -1608,8 +1608,8 @@ static void PrintFlyTargetName(void)
{
if (ewram0_3.regionMap.unk16 == 2 || ewram0_3.regionMap.unk16 == 4)
{
- u16 i = 0;
- int zero;
+ u16 i;
+ bool32 drawFrameDisabled = FALSE;
for (i = 0; i < ARRAY_COUNT(sUnknown_083E79C0); i++)
{
@@ -1627,9 +1627,8 @@ static void PrintFlyTargetName(void)
break;
}
}
- // This check is always true, but somehow the compiler still performed it.
- asm("mov %0, #0\n":"=r"(zero)); // zero = 0
- if (zero == 0)
+
+ if (!drawFrameDisabled)
{
Menu_DrawStdWindowFrame(16, 16, 29, 19);
Menu_PrintText(ewram0_3.regionMap.mapSectionName, 17, 17);