summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2018-12-09 11:32:58 +0800
committernullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2018-12-09 11:32:58 +0800
commitcceb8ac3314c9ba5a48d0b69bc39c41080335119 (patch)
treeed018403115f9769aa4ea45bb574021af057f48c /src
parentf50faac244dab668b1d7f95dc276615888a5ed55 (diff)
Remove trailing whitespace
Diffstat (limited to 'src')
-rw-r--r--src/battle_ai_script_commands.c2
-rw-r--r--src/battle_main.c2
-rw-r--r--src/battle_pyramid.c4
-rw-r--r--src/pokemon_icon.c2
-rw-r--r--src/rotating_gate.c2
-rw-r--r--src/wallclock.c8
6 files changed, 10 insertions, 10 deletions
diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c
index 687d81419..a88189870 100644
--- a/src/battle_ai_script_commands.c
+++ b/src/battle_ai_script_commands.c
@@ -464,7 +464,7 @@ static u8 ChooseMoveOrAction_Doubles(void)
if (i == sBattler_AI || gBattleMons[i].hp == 0)
{
actionOrMoveIndex[i] = 0xFF;
- bestMovePointsForTarget[i] = -1 ;
+ bestMovePointsForTarget[i] = -1;
}
else
{
diff --git a/src/battle_main.c b/src/battle_main.c
index e275eee9e..9b7f58023 100644
--- a/src/battle_main.c
+++ b/src/battle_main.c
@@ -5594,7 +5594,7 @@ bool8 TryRunFromBattle(u8 battler)
if (holdEffect == HOLD_EFFECT_CAN_ALWAYS_RUN)
{
- gLastUsedItem = gBattleMons[battler].item ;
+ gLastUsedItem = gBattleMons[battler].item;
gProtectStructs[battler].fleeFlag = 1;
effect++;
}
diff --git a/src/battle_pyramid.c b/src/battle_pyramid.c
index f27af2615..6cc09d713 100644
--- a/src/battle_pyramid.c
+++ b/src/battle_pyramid.c
@@ -1458,7 +1458,7 @@ static u16 sub_81A9F90(u8 count)
do
{
trainerId = sub_8162548(challengeNum + 1, battleNum);
- for (i = 0 ; i < count; i++)
+ for (i = 0; i < count; i++)
{
if (gSaveBlock2Ptr->frontier.field_CB4[i] == trainerId)
break;
@@ -1470,7 +1470,7 @@ static u16 sub_81A9F90(u8 count)
do
{
trainerId = sub_8162548(challengeNum, battleNum);
- for (i = 0 ; i < count; i++)
+ for (i = 0; i < count; i++)
{
if (gSaveBlock2Ptr->frontier.field_CB4[i] == trainerId)
break;
diff --git a/src/pokemon_icon.c b/src/pokemon_icon.c
index e1e446007..c24c8a898 100644
--- a/src/pokemon_icon.c
+++ b/src/pokemon_icon.c
@@ -1211,7 +1211,7 @@ void sub_80D304C(u16 offset)
if(offset <= 0xA0)
{
monIconPalettePtr = gMonIconPaletteTable;
- for(i = 5; i >= 0 ; i--)
+ for(i = 5; i >= 0; i--)
{
LoadPalette(monIconPalettePtr->data, offset, 0x20);
offset += 0x10;
diff --git a/src/rotating_gate.c b/src/rotating_gate.c
index f617321af..3513f092e 100644
--- a/src/rotating_gate.c
+++ b/src/rotating_gate.c
@@ -871,7 +871,7 @@ static s32 RotatingGate_CanRotate(u8 gateId, s32 rotationDirection)
y = gRotatingGate_PuzzleConfig[gateId].y + 7;
// Loop through the gate's "arms" clockwise (north, south, east, west)
- for (i = GATE_ARM_NORTH ; i <= GATE_ARM_WEST; i++)
+ for (i = GATE_ARM_NORTH; i <= GATE_ARM_WEST; i++)
{
// Ensure that no part of the arm collides with the map
for (j = 0; j < GATE_ARM_MAX_LENGTH; j++)
diff --git a/src/wallclock.c b/src/wallclock.c
index e2e03ecba..5c8d920e7 100644
--- a/src/wallclock.c
+++ b/src/wallclock.c
@@ -890,13 +890,13 @@ static u16 CalcNewMinHandAngle(u16 angle, u8 direction, u8 speed)
{
case MVMT_BACKWARD:
if (angle)
- angle -= delta ;
+ angle -= delta;
else
- angle = 360 - delta ;
+ angle = 360 - delta;
break;
case MVMT_FORWARD:
- if (angle < 360 - delta )
- angle += delta ;
+ if (angle < 360 - delta)
+ angle += delta;
else
angle = 0;
break;