summaryrefslogtreecommitdiff
path: root/src/contest_link_util.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-09-23 21:49:49 -0400
committerGitHub <noreply@github.com>2021-09-23 21:49:49 -0400
commit9d0f9042febd46d506110778a3beeec90c8c9c1e (patch)
treec3bf2f4b0b3183de111bfcc89fac3316f562c937 /src/contest_link_util.c
parent0c2e9a5b4c1c0c0f2a62be6165e826760dd572cb (diff)
parenta6ab2eb883b4cef727a6caee993745cfeff1274b (diff)
Merge pull request #1498 from LOuroboros/trailingSpaces
Removed trailing spaces in the most relevant files
Diffstat (limited to 'src/contest_link_util.c')
-rw-r--r--src/contest_link_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/contest_link_util.c b/src/contest_link_util.c
index 31ffb5fdb..28dec1989 100644
--- a/src/contest_link_util.c
+++ b/src/contest_link_util.c
@@ -88,7 +88,7 @@ static void Task_LinkContest_SetUpContestEm(u8 taskId)
for (i = 0; i < gNumLinkContestPlayers; i++)
categories[i] = gTasks[taskId].data[i + 1];
-
+
// Ensure all players are doing the same category
for (i = 0; i < gNumLinkContestPlayers && categories[0] == categories[i]; i++)
;
@@ -100,7 +100,7 @@ static void Task_LinkContest_SetUpContestEm(u8 taskId)
for (i = 0; i < gNumLinkContestPlayers; i++)
leaderIds[i] = gTasks[taskId].data[i + 5];
-
+
// If < 4 players and player is leader, set AI contestants based on rank and game clear
if (gNumLinkContestPlayers != CONTESTANT_COUNT && GetMultiplayerId() == 0)
{
@@ -113,7 +113,7 @@ static void Task_LinkContest_SetUpContestEm(u8 taskId)
if (rank)
rank--;
-
+
gameCleared = TRUE;
for (i = 0; i < gNumLinkContestPlayers; i++)
{
@@ -202,7 +202,7 @@ static void Task_LinkContest_CommunicateRngEm(u8 taskId)
// Only the leader sends the RNG seed
if (!IsLinkTaskFinished())
return;
-
+
if (LinkContest_SendBlock(&gRngValue, sizeof(gRngValue)) == 1)
gTasks[taskId].data[0]++;
}
@@ -321,7 +321,7 @@ static void Task_LinkContest_CommunicateAIMonsEm(u8 taskId)
{
if (!IsLinkTaskFinished())
return;
-
+
if (LinkContest_SendBlock(&gContestMons[gNumLinkContestPlayers], (CONTESTANT_COUNT - gNumLinkContestPlayers) * sizeof(struct ContestPokemon)) == 1)
gTasks[taskId].data[0]++;
}