summaryrefslogtreecommitdiff
path: root/src/mevent.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-09-25 13:56:50 -0400
committerGitHub <noreply@github.com>2019-09-25 13:56:50 -0400
commit1d4234bd7e295c553485b7d676d42c838e4762c4 (patch)
tree67ac4179d9978baf4e989ef55245e4be0d777c04 /src/mevent.c
parent7f6d86a8bf2afe349135d502debc2237bafafff5 (diff)
parent931bf4ce4b4fd7ea63d00f36adfd2bf720831a80 (diff)
Merge branch 'master' into PIE2
Diffstat (limited to 'src/mevent.c')
-rw-r--r--src/mevent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mevent.c b/src/mevent.c
index fc0c1f2d4..d0d7f59aa 100644
--- a/src/mevent.c
+++ b/src/mevent.c
@@ -134,7 +134,7 @@ static void ResetTTDataBuffer(void)
{
memset(gDecompressionBuffer, 0, 0x2000);
gLinkType = 0x5502;
- sub_8009804();
+ OpenLink();
SetSuppressLinkErrorMessage(TRUE);
}
@@ -156,7 +156,7 @@ bool32 sub_81436EC(void)
static bool32 IsEReaderConnectionSane(void)
{
- if (sub_800AA48() && GetLinkPlayerCount_2() == 2)
+ if (IsLinkMaster() && GetLinkPlayerCount_2() == 2)
return TRUE;
return FALSE;
}
@@ -171,7 +171,7 @@ u32 sub_8143770(u8 * r4, u16 * r5)
switch (*r4)
{
case 0:
- if (sub_800AA48() && GetLinkPlayerCount_2() > 1)
+ if (IsLinkMaster() && GetLinkPlayerCount_2() > 1)
{
*r4 = 1;
;
@@ -193,7 +193,7 @@ u32 sub_8143770(u8 * r4, u16 * r5)
if (GetLinkPlayerCount_2() == 2)
{
PlaySE(SE_TOY_G);
- sub_800A5BC();
+ CheckShouldAdvanceLinkState();
*r5 = 0;
*r4 = 3;
}