summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bike.c12
-rw-r--r--src/field_player_avatar.c14
2 files changed, 13 insertions, 13 deletions
diff --git a/src/bike.c b/src/bike.c
index 15857778c..e66d6b6e1 100644
--- a/src/bike.c
+++ b/src/bike.c
@@ -696,11 +696,11 @@ static void AcroBikeTransition_WheelieMoving(u8 direction)
if (MetatileBehavior_IsBumpySlope(playerObjEvent->currentMetatileBehavior))
PlayerIdleWheelie(direction);
else
- sub_808B980(direction); //hit wall?
+ PlayerWheelieInPlace(direction); //hit wall?
}
return;
}
- sub_808B9BC(direction);
+ PlayerWheelieMove(direction);
gPlayerAvatar.runningState = MOVING;
}
@@ -730,11 +730,11 @@ static void AcroBikeTransition_WheelieRisingMoving(u8 direction)
if (MetatileBehavior_IsBumpySlope(playerObjEvent->currentMetatileBehavior))
PlayerIdleWheelie(direction);
else
- sub_808B980(direction); //hit wall?
+ PlayerWheelieInPlace(direction); //hit wall?
}
return;
}
- sub_808B9A4(direction);
+ PlayerPopWheelieWhileMoving(direction);
gPlayerAvatar.runningState = MOVING;
}
@@ -757,7 +757,7 @@ static void AcroBikeTransition_WheelieLoweringMoving(u8 direction)
PlayerEndWheelie(direction);
return;
}
- sub_808B9D4(direction);
+ PlayerEndWheelieWhileMoving(direction);
}
void Bike_TryAcroBikeHistoryUpdate(u16 newKeys, u16 heldKeys)
@@ -1049,7 +1049,7 @@ void Bike_HandleBumpySlopeJump(void)
if (MetatileBehavior_IsBumpySlope(tileBehavior))
{
gPlayerAvatar.acroBikeState = ACRO_STATE_WHEELIE_STANDING;
- sub_808C1B4(GetPlayerMovementDirection());
+ PlayerUseAcroBikeOnBumpySlope(GetPlayerMovementDirection());
}
}
}
diff --git a/src/field_player_avatar.c b/src/field_player_avatar.c
index 35bbb1e03..6d44f4b51 100644
--- a/src/field_player_avatar.c
+++ b/src/field_player_avatar.c
@@ -261,7 +261,7 @@ static const u8 sRSAvatarGfxIds[] = {OBJ_EVENT_GFX_LINK_RS_BRENDAN, OBJ_EVENT_GF
static const u8 sPlayerAvatarGfxToStateFlag[2][5][2] =
{
- [MALE] =
+ [MALE] =
{
{OBJ_EVENT_GFX_BRENDAN_NORMAL, PLAYER_AVATAR_FLAG_ON_FOOT},
{OBJ_EVENT_GFX_BRENDAN_MACH_BIKE, PLAYER_AVATAR_FLAG_MACH_BIKE},
@@ -269,7 +269,7 @@ static const u8 sPlayerAvatarGfxToStateFlag[2][5][2] =
{OBJ_EVENT_GFX_BRENDAN_SURFING, PLAYER_AVATAR_FLAG_SURFING},
{OBJ_EVENT_GFX_BRENDAN_UNDERWATER, PLAYER_AVATAR_FLAG_UNDERWATER},
},
- [FEMALE] =
+ [FEMALE] =
{
{OBJ_EVENT_GFX_MAY_NORMAL, PLAYER_AVATAR_FLAG_ON_FOOT},
{OBJ_EVENT_GFX_MAY_MACH_BIKE, PLAYER_AVATAR_FLAG_MACH_BIKE},
@@ -1079,23 +1079,23 @@ void PlayerAcroTurnJump(u8 direction)
PlayerSetAnimId(GetJumpInPlaceTurnAroundMovementAction(direction), 1);
}
-void sub_808B980(u8 direction)
+void PlayerWheelieInPlace(u8 direction)
{
PlaySE(SE_WALL_HIT);
PlayerSetAnimId(GetAcroWheelieInPlaceDirectionMovementAction(direction), 2);
}
-void sub_808B9A4(u8 direction)
+void PlayerPopWheelieWhileMoving(u8 direction)
{
PlayerSetAnimId(GetAcroPopWheelieMoveDirectionMovementAction(direction), 2);
}
-void sub_808B9BC(u8 direction)
+void PlayerWheelieMove(u8 direction)
{
PlayerSetAnimId(GetAcroWheelieMoveDirectionMovementAction(direction), 2);
}
-void sub_808B9D4(u8 direction)
+void PlayerEndWheelieWhileMoving(u8 direction)
{
PlayerSetAnimId(GetAcroEndWheelieMoveDirectionMovementAction(direction), 2);
}
@@ -1415,7 +1415,7 @@ void sub_808C15C(u8 direction)
StartSpriteAnim(&gSprites[gPlayerAvatar.spriteId], GetFishingDirectionAnimNum(direction));
}
-void sub_808C1B4(u8 direction)
+void PlayerUseAcroBikeOnBumpySlope(u8 direction)
{
ObjectEventSetGraphicsId(&gObjectEvents[gPlayerAvatar.objectEventId], GetPlayerAvatarGraphicsIdByStateId(PLAYER_AVATAR_STATE_ACRO_BIKE));
StartSpriteAnim(&gSprites[gPlayerAvatar.spriteId], GetAcroWheelieDirectionAnimNum(direction));