diff options
author | cbt6 <91667135+cbt6@users.noreply.github.com> | 2022-02-28 23:12:57 +0800 |
---|---|---|
committer | cbt6 <91667135+cbt6@users.noreply.github.com> | 2022-02-28 23:12:57 +0800 |
commit | 0aaae88d6e7a75cd4aeed4ea5bf574afe77ace27 (patch) | |
tree | e953101d29d57f4b30ef7c8b93b47de3a9dfac73 | |
parent | 759f373d3153afb0e9dcf5050a700aeca036a919 (diff) |
Rename movement action 0x9F
-rw-r--r-- | asm/macros/movement.inc | 2 | ||||
-rw-r--r-- | include/constants/event_object_movement.h | 2 | ||||
-rw-r--r-- | include/field_player_avatar.h | 2 | ||||
-rw-r--r-- | src/data/object_events/movement_action_func_tables.h | 2 | ||||
-rw-r--r-- | src/field_player_avatar.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/asm/macros/movement.inc b/asm/macros/movement.inc index b6c151730..7cbd1ffc4 100644 --- a/asm/macros/movement.inc +++ b/asm/macros/movement.inc @@ -124,7 +124,7 @@ create_movement walk_slowest_up create_movement walk_slowest_left create_movement walk_slowest_right - create_movement shake_head + create_movement shake_head_or_walk_in_place enum_start 0xa6 create_movement jump_special_with_effect_down diff --git a/include/constants/event_object_movement.h b/include/constants/event_object_movement.h index 87625860b..a9b390b6f 100644 --- a/include/constants/event_object_movement.h +++ b/include/constants/event_object_movement.h @@ -247,7 +247,7 @@ #define MOVEMENT_ACTION_WALK_SLOWEST_UP 0x9C #define MOVEMENT_ACTION_WALK_SLOWEST_LEFT 0x9D #define MOVEMENT_ACTION_WALK_SLOWEST_RIGHT 0x9E -#define MOVEMENT_ACTION_SHAKE_HEAD 0x9F +#define MOVEMENT_ACTION_SHAKE_HEAD_OR_WALK_IN_PLACE 0x9F #define MOVEMENT_ACTION_0xA0 0xA0 #define MOVEMENT_ACTION_0xA1 0xA1 #define MOVEMENT_ACTION_0xA2 0xA2 diff --git a/include/field_player_avatar.h b/include/field_player_avatar.h index 7e051f0dd..a970385db 100644 --- a/include/field_player_avatar.h +++ b/include/field_player_avatar.h @@ -56,7 +56,7 @@ void PlayerFaceDirection(u8 direction); void PlayerFaceDirectionFast(u8 direction); void PlayerTurnInPlace(u8 direction); void PlayerJumpLedge(u8 direction); -void PlayerShakeHead(void); +void PlayerShakeHeadOrWalkInPlace(void); void player_step(u8 direction, u16 newKeys, u16 heldKeys); bool32 PlayerIsMovingOnRockStairs(u8 direction); void UpdatePlayerAvatarTransitionState(void); diff --git a/src/data/object_events/movement_action_func_tables.h b/src/data/object_events/movement_action_func_tables.h index e55687c03..9abd6452a 100644 --- a/src/data/object_events/movement_action_func_tables.h +++ b/src/data/object_events/movement_action_func_tables.h @@ -622,7 +622,7 @@ bool8 (*const *const gMovementActionFuncs[])(struct ObjectEvent *, struct Sprite [MOVEMENT_ACTION_WALK_SLOWEST_UP] = sMovementActionFuncs_x9C, [MOVEMENT_ACTION_WALK_SLOWEST_LEFT] = sMovementActionFuncs_x9D, [MOVEMENT_ACTION_WALK_SLOWEST_RIGHT] = sMovementActionFuncs_x9E, - [MOVEMENT_ACTION_SHAKE_HEAD] = sMovementActionFuncs_x9F, + [MOVEMENT_ACTION_SHAKE_HEAD_OR_WALK_IN_PLACE] = sMovementActionFuncs_x9F, [MOVEMENT_ACTION_0xA0] = sMovementActionFuncs_xA0, [MOVEMENT_ACTION_0xA1] = sMovementActionFuncs_xA1, [MOVEMENT_ACTION_0xA2] = sMovementActionFuncs_xA2, diff --git a/src/field_player_avatar.c b/src/field_player_avatar.c index bafe7fd22..4126cc650 100644 --- a/src/field_player_avatar.c +++ b/src/field_player_avatar.c @@ -909,9 +909,9 @@ void PlayerJumpLedge(u8 direction) PlayerSetAnimId(GetJump2MovementAction(direction), 8); } -void PlayerShakeHead(void) +void PlayerShakeHeadOrWalkInPlace(void) { - PlayerSetAnimId(MOVEMENT_ACTION_SHAKE_HEAD, 0); + PlayerSetAnimId(MOVEMENT_ACTION_SHAKE_HEAD_OR_WALK_IN_PLACE, 0); } void HandleEnforcedLookDirectionOnPlayerStopMoving(void) |