mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
Merge pull request #1148 from PokeCodec/savedIme
Remove unused var from ruby and other minor refactors.
This commit is contained in:
commit
d7e31f5a85
@ -999,8 +999,6 @@ void ResetLinkContestBoolean(void)
|
||||
|
||||
static void SetupContestGpuRegs(void)
|
||||
{
|
||||
u16 savedIme;
|
||||
|
||||
SetGpuReg(REG_OFFSET_DISPCNT, DISPCNT_OBJ_1D_MAP);
|
||||
SetGpuReg(REG_OFFSET_BLDCNT, 0);
|
||||
SetGpuReg(REG_OFFSET_BLDALPHA, 0);
|
||||
@ -3410,8 +3408,7 @@ static void GetAllChosenMoves(void)
|
||||
|
||||
static void RankContestants(void)
|
||||
{
|
||||
s32 i;
|
||||
s32 j;
|
||||
s32 i, j;
|
||||
s16 arr[CONTESTANT_COUNT];
|
||||
|
||||
for (i = 0; i < CONTESTANT_COUNT; i++)
|
||||
@ -3486,8 +3483,7 @@ static bool8 ContestantCanUseTurn(u8 contestant)
|
||||
{
|
||||
if (eContestantStatus[contestant].numTurnsSkipped != 0 || eContestantStatus[contestant].noMoreTurns)
|
||||
return FALSE;
|
||||
else
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void SetContestantStatusesForNextRound(void)
|
||||
@ -3541,8 +3537,7 @@ bool8 Contest_IsMonsTurnDisabled(u8 contestant)
|
||||
{
|
||||
if (eContestantStatus[contestant].numTurnsSkipped != 0 || eContestantStatus[contestant].noMoreTurns)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void CalculateTotalPointsForContestant(u8 contestant)
|
||||
@ -4485,17 +4480,14 @@ static void CalculateAppealMoveImpact(u8 contestant)
|
||||
eContestantStatus[contestant].comboAppealBonus = eContestantStatus[contestant].baseAppeal * eContestantStatus[contestant].completedCombo;
|
||||
eContestantStatus[contestant].completedComboFlag = TRUE; // Redundant with completedCombo, used by AI
|
||||
}
|
||||
else if (gContestMoves[eContestantStatus[contestant].currMove].comboStarterId != 0)
|
||||
{
|
||||
eContestantStatus[contestant].hasJudgesAttention = TRUE;
|
||||
eContestantStatus[contestant].usedComboMove = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (gContestMoves[eContestantStatus[contestant].currMove].comboStarterId != 0)
|
||||
{
|
||||
eContestantStatus[contestant].hasJudgesAttention = TRUE;
|
||||
eContestantStatus[contestant].usedComboMove = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
eContestantStatus[contestant].hasJudgesAttention = FALSE;
|
||||
}
|
||||
eContestantStatus[contestant].hasJudgesAttention = FALSE;
|
||||
}
|
||||
}
|
||||
if (eContestantStatus[contestant].repeatedMove)
|
||||
|
@ -227,9 +227,7 @@ bool8 SetUpFieldMove_Cut(void)
|
||||
y = gPlayerFacingPosition.y + sHyperCutStruct[i].y;
|
||||
tileCuttable = TRUE;
|
||||
|
||||
j = 0;
|
||||
do
|
||||
{
|
||||
for (j = 0; j < 2; ++j) {
|
||||
if (sHyperCutStruct[i].unk2[j] == 0)
|
||||
break;
|
||||
if (cutTiles[(u8)(sHyperCutStruct[i].unk2[j] - 1)] == FALSE)
|
||||
@ -237,7 +235,7 @@ bool8 SetUpFieldMove_Cut(void)
|
||||
tileCuttable = FALSE;
|
||||
break;
|
||||
}
|
||||
} while (++j <= 1);
|
||||
}
|
||||
|
||||
if (tileCuttable == TRUE)
|
||||
{
|
||||
@ -253,11 +251,8 @@ bool8 SetUpFieldMove_Cut(void)
|
||||
sHyperCutTiles[tileArrayId] = TRUE;
|
||||
ret = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (MetatileBehavior_IsCuttableGrass(tileBehavior) == TRUE)
|
||||
sHyperCutTiles[tileArrayId] = TRUE;
|
||||
}
|
||||
else if (MetatileBehavior_IsCuttableGrass(tileBehavior) == TRUE)
|
||||
sHyperCutTiles[tileArrayId] = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user