Undo PokeCodec's PRs
This commit undoes most of PokeCodec's PRs after the debate in chat. Some harmless or completely superseded PRs have been left alone, as there is not much benefit in attempting to undo them. Reverts #1104, #1108, #1115, #1118, #1119, #1124, #1126, #1127, #1132, #1136, #1137, #1139, #1140, #1144, #1148, #1149, #1150, #1153, #1155, #1177, #1179, #1180, #1181, #1182 and #1183.
This commit is contained in:
+5
-5
@@ -163,7 +163,7 @@ static bool32 CheckLinkErrored(u8 taskId)
|
||||
|
||||
static bool32 CheckLinkCanceledBeforeConnection(u8 taskId)
|
||||
{
|
||||
if ((JOY_NEW(B_BUTTON))
|
||||
if ((gMain.newKeys & B_BUTTON)
|
||||
&& IsLinkConnectionEstablished() == FALSE)
|
||||
{
|
||||
gLinkType = 0;
|
||||
@@ -178,7 +178,7 @@ static bool32 CheckLinkCanceled(u8 taskId)
|
||||
if (IsLinkConnectionEstablished())
|
||||
SetSuppressLinkErrorMessage(TRUE);
|
||||
|
||||
if (JOY_NEW(B_BUTTON))
|
||||
if (gMain.newKeys & B_BUTTON)
|
||||
{
|
||||
gLinkType = 0;
|
||||
gTasks[taskId].func = Task_LinkupFailed;
|
||||
@@ -277,7 +277,7 @@ static void Task_LinkupAwaitConfirmation(u8 taskId)
|
||||
|
||||
UpdateLinkPlayerCountDisplay(taskId, linkPlayerCount);
|
||||
|
||||
if (!(JOY_NEW(A_BUTTON)))
|
||||
if (!(gMain.newKeys & A_BUTTON))
|
||||
return;
|
||||
|
||||
if (linkPlayerCount < tMinPlayers)
|
||||
@@ -304,12 +304,12 @@ static void Task_LinkupTryConfirmation(u8 taskId)
|
||||
ShowFieldAutoScrollMessage(gText_ConfirmLinkWhenPlayersReady);
|
||||
gTasks[taskId].func = Task_LinkupConfirmWhenReady;
|
||||
}
|
||||
else if (JOY_HELD(B_BUTTON))
|
||||
else if (gMain.heldKeys & B_BUTTON)
|
||||
{
|
||||
ShowFieldAutoScrollMessage(gText_ConfirmLinkWhenPlayersReady);
|
||||
gTasks[taskId].func = Task_LinkupConfirmWhenReady;
|
||||
}
|
||||
else if (JOY_HELD(A_BUTTON))
|
||||
else if (gMain.heldKeys & A_BUTTON)
|
||||
{
|
||||
PlaySE(SE_SELECT);
|
||||
CheckShouldAdvanceLinkState();
|
||||
|
||||
Reference in New Issue
Block a user