diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-30 23:23:45 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-01-30 23:23:45 -0500 |
commit | 09302c0bc5ead4e28099ba88cb486dab6def4d8f (patch) | |
tree | 073798897888d65b4e436b46274b68ab996c51d3 /src/battle_controllers.c | |
parent | 3ff5db0b69a56fe916c156bc97d7753b570a12d7 (diff) | |
parent | eb5737357d4b34a686ea09b9651630f4c3f8b80f (diff) |
Merge branch 'master' of https://github.com/pret/pokeemerald into field_map_obj_helpers
Diffstat (limited to 'src/battle_controllers.c')
-rw-r--r-- | src/battle_controllers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle_controllers.c b/src/battle_controllers.c index c6d47e71e..c28b6ef3b 100644 --- a/src/battle_controllers.c +++ b/src/battle_controllers.c @@ -64,7 +64,7 @@ void HandleLinkBattleSetup(void) if (gLinkVSyncDisabled) sub_800B488(); if (!gReceivedRemoteLinkPlayers) - sub_8009734(); + OpenLink(); CreateTask(task00_08081A90, 0); CreateTasksForSendRecvLinkBuffers(); } @@ -793,9 +793,9 @@ static void Task_HandleSendLinkBuffersData(u8 taskId) else var = (gBattleTypeFlags & BATTLE_TYPE_MULTI) ? 4 : 2; - if (sub_800ABAC() >= var) + if (GetLinkPlayerCount_2() >= var) { - if (sub_800ABBC()) + if (IsLinkMaster()) { sub_800A620(); gTasks[taskId].data[11]++; |