summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-09-30 00:13:08 -0400
committerGriffinR <griffin.richards@comcast.net>2019-09-30 00:13:08 -0400
commita923ae78c3dbfd711dd0f1168a340abb0eb2dc8c (patch)
treeb06a7999b1b9fa87ecc60a245997c4ca32ff1309
parent53bc1bd0d196ff5975c76be474d033db778aa6e2 (diff)
Add missing page num usage
-rwxr-xr-xsrc/union_room_chat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/union_room_chat.c b/src/union_room_chat.c
index eaf24fc02..c68a2c0a9 100755
--- a/src/union_room_chat.c
+++ b/src/union_room_chat.c
@@ -2864,9 +2864,9 @@ static void sub_802091C(bool32 invisible)
static void sub_802093C(void)
{
u8 x, y;
- u8 var2 = GetCurrentKeyboardPage();
+ u8 page = GetCurrentKeyboardPage();
sub_801F0BC(&x, &y);
- if (var2 != 3)
+ if (page != UNION_ROOM_KB_PAGE_COUNT)
{
StartSpriteAnim(gUnknown_02022C8C->unk0, 0);
gUnknown_02022C8C->unk0->pos1.x = x * 8 + 10;
@@ -2889,7 +2889,7 @@ static void sub_80209AC(int arg0)
static void sub_80209E0(void)
{
- if (GetCurrentKeyboardPage() != 3)
+ if (GetCurrentKeyboardPage() != UNION_ROOM_KB_PAGE_COUNT)
StartSpriteAnim(gUnknown_02022C8C->unk0, 1);
else
StartSpriteAnim(gUnknown_02022C8C->unk0, 3);
@@ -2904,7 +2904,7 @@ static bool32 sub_8020A1C(void)
if (++gUnknown_02022C8C->unk14 > 3)
{
- if (GetCurrentKeyboardPage() != 3)
+ if (GetCurrentKeyboardPage() != UNION_ROOM_KB_PAGE_COUNT)
StartSpriteAnim(gUnknown_02022C8C->unk0, 0);
else
StartSpriteAnim(gUnknown_02022C8C->unk0, 2);