Removed trailing spaces in the most relevant files
Command used for the job: egrep -rl ' $' --include *.c --include *.h --include *.s --include *.inc --include *.txt * | xargs sed -i 's/\s\+$//g' Credits to Grant Murphy from Stack Overflow.
This commit is contained in:
+31
-31
@@ -402,17 +402,17 @@ static const struct WindowTemplate sYesNoWindowTemplate_ContinuePlaying =
|
||||
|
||||
static const s8 sPlayerArrowQuadrant[BLENDER_MAX_PLAYERS][2] =
|
||||
{
|
||||
{-1, -1},
|
||||
{ 1, -1},
|
||||
{-1, 1},
|
||||
{-1, -1},
|
||||
{ 1, -1},
|
||||
{-1, 1},
|
||||
{ 1, 1}
|
||||
};
|
||||
|
||||
static const u8 sPlayerArrowPos[BLENDER_MAX_PLAYERS][2] =
|
||||
{
|
||||
{ 72, 32},
|
||||
{168, 32},
|
||||
{ 72, 128},
|
||||
{ 72, 32},
|
||||
{168, 32},
|
||||
{ 72, 128},
|
||||
{168, 128}
|
||||
};
|
||||
|
||||
@@ -427,16 +427,16 @@ static const u8 sPlayerIdMap[BLENDER_MAX_PLAYERS - 1][BLENDER_MAX_PLAYERS] =
|
||||
// Blender arrow positions:
|
||||
//
|
||||
// 0x0000 (limit 0x10000)
|
||||
// . .
|
||||
// . .
|
||||
// . .
|
||||
// 0x4000 . . 0xC000
|
||||
// . .
|
||||
// . .
|
||||
// . .
|
||||
// . .
|
||||
// 0x8000
|
||||
//
|
||||
//
|
||||
static const u16 sArrowStartPos[] = {
|
||||
0,
|
||||
0,
|
||||
MAX_ARROW_POS / 4 * 3, // 0xC000
|
||||
MAX_ARROW_POS / 4, // 0x4000
|
||||
MAX_ARROW_POS / 4 * 2 // 0x8000
|
||||
@@ -446,8 +446,8 @@ static const u8 sArrowHitRangeStart[BLENDER_MAX_PLAYERS] = {32, 224, 96, 160};
|
||||
|
||||
static const TaskFunc sLocalOpponentTasks[] =
|
||||
{
|
||||
Task_HandleOpponent1,
|
||||
Task_HandleOpponent2,
|
||||
Task_HandleOpponent1,
|
||||
Task_HandleOpponent2,
|
||||
Task_HandleOpponent3
|
||||
};
|
||||
|
||||
@@ -873,7 +873,7 @@ static const u8 sOpponentBerrySets[NUM_NPC_BERRIES * 2][3] =
|
||||
{ITEM_TO_BERRY(ITEM_CHESTO_BERRY) - 1, ITEM_TO_BERRY(ITEM_CHERI_BERRY) - 1, ITEM_TO_BERRY(ITEM_ASPEAR_BERRY) - 1}, // player chose Pecha Berry
|
||||
{ITEM_TO_BERRY(ITEM_PECHA_BERRY) - 1, ITEM_TO_BERRY(ITEM_CHESTO_BERRY) - 1, ITEM_TO_BERRY(ITEM_CHERI_BERRY) - 1}, // player chose Rawst Berry
|
||||
{ITEM_TO_BERRY(ITEM_RAWST_BERRY) - 1, ITEM_TO_BERRY(ITEM_PECHA_BERRY) - 1, ITEM_TO_BERRY(ITEM_CHESTO_BERRY) - 1}, // player chose Aspear Berry
|
||||
|
||||
|
||||
// These sets are used if the player chose a different berry (set is selected by player's berry % 5)
|
||||
{ITEM_TO_BERRY(ITEM_CHERI_BERRY) - 1, ITEM_TO_BERRY(ITEM_PECHA_BERRY) - 1, ITEM_TO_BERRY(ITEM_RAWST_BERRY) - 1}, // player chose Leppa, Figy, ...
|
||||
{ITEM_TO_BERRY(ITEM_CHESTO_BERRY) - 1, ITEM_TO_BERRY(ITEM_RAWST_BERRY) - 1, ITEM_TO_BERRY(ITEM_ASPEAR_BERRY) - 1}, // player chose Oran, Wiki, ...
|
||||
@@ -885,14 +885,14 @@ static const u8 sOpponentBerrySets[NUM_NPC_BERRIES * 2][3] =
|
||||
// Berry master's berries follow the same rules as above, but instead of explicitly listing
|
||||
// the alternate sets if the player chooses one of these berries, it implicitly uses these berries - 5, i.e. Tamato - Nomel
|
||||
static const u8 sBerryMasterBerries[] = {
|
||||
ITEM_TO_BERRY(ITEM_SPELON_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_PAMTRE_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_WATMEL_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_DURIN_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_SPELON_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_PAMTRE_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_WATMEL_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_DURIN_BERRY) - 1,
|
||||
ITEM_TO_BERRY(ITEM_BELUE_BERRY) - 1
|
||||
};
|
||||
|
||||
// "0 players" is link
|
||||
// "0 players" is link
|
||||
static const u8 sNumPlayersToSpeedDivisor[] = {1, 1, 2, 3, 4};
|
||||
|
||||
// Black pokeblocks will use one of these random combinations of flavors
|
||||
@@ -1191,11 +1191,11 @@ static void SetBerrySpriteData(struct Sprite* sprite, s16 x, s16 y, s16 bounceSp
|
||||
static void CreateBerrySprite(u16 a0, u8 playerId)
|
||||
{
|
||||
u8 spriteId = CreateSpinningBerrySprite(a0 + FIRST_BERRY_INDEX - 10, 0, 80, playerId & 1);
|
||||
SetBerrySpriteData(&gSprites[spriteId],
|
||||
sBerrySpriteData[playerId][0],
|
||||
sBerrySpriteData[playerId][1],
|
||||
sBerrySpriteData[playerId][2],
|
||||
sBerrySpriteData[playerId][3],
|
||||
SetBerrySpriteData(&gSprites[spriteId],
|
||||
sBerrySpriteData[playerId][0],
|
||||
sBerrySpriteData[playerId][1],
|
||||
sBerrySpriteData[playerId][2],
|
||||
sBerrySpriteData[playerId][3],
|
||||
sBerrySpriteData[playerId][4]);
|
||||
}
|
||||
|
||||
@@ -2135,12 +2135,12 @@ static void UpdateOpponentScores(void)
|
||||
// BUG: Should be [i][BLENDER_COMM_SCORE] below, not [BLENDER_COMM_SCORE][i]
|
||||
// As a result the music tempo updates if any player misses, but only if 1 specific player hits
|
||||
#ifdef BUGFIX
|
||||
if (gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_MISS
|
||||
|| gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_BEST
|
||||
if (gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_MISS
|
||||
|| gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_BEST
|
||||
|| gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_GOOD)
|
||||
#else
|
||||
if (gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_MISS
|
||||
|| gRecvCmds[BLENDER_COMM_SCORE][i] == LINKCMD_BLENDER_SCORE_BEST
|
||||
if (gRecvCmds[i][BLENDER_COMM_SCORE] == LINKCMD_BLENDER_SCORE_MISS
|
||||
|| gRecvCmds[BLENDER_COMM_SCORE][i] == LINKCMD_BLENDER_SCORE_BEST
|
||||
|| gRecvCmds[BLENDER_COMM_SCORE][i] == LINKCMD_BLENDER_SCORE_GOOD)
|
||||
#endif
|
||||
{
|
||||
@@ -2204,7 +2204,7 @@ static void HandlePlayerInput(void)
|
||||
sBerryBlender->speed--;
|
||||
sBerryBlender->slowdownTimer = 0;
|
||||
}
|
||||
|
||||
|
||||
if (gEnableContestDebugging && JOY_NEW(L_BUTTON))
|
||||
sBerryBlender->perfectOpponents ^= 1;
|
||||
}
|
||||
@@ -3030,10 +3030,10 @@ static void ProcessLinkPlayerCmds(void)
|
||||
sBerryBlender->playerContinueResponses[0] = LINKCMD_SEND_LINK_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// If player is link leader, check for responses to the "Continue playing" prompt (even if it's not up yet)
|
||||
if (GetMultiplayerId() == 0
|
||||
&& sBerryBlender->playerContinueResponses[0] != LINKCMD_BLENDER_STOP
|
||||
if (GetMultiplayerId() == 0
|
||||
&& sBerryBlender->playerContinueResponses[0] != LINKCMD_BLENDER_STOP
|
||||
&& sBerryBlender->playerContinueResponses[0] != LINKCMD_SEND_LINK_TYPE)
|
||||
{
|
||||
u8 i;
|
||||
|
||||
Reference in New Issue
Block a user