summaryrefslogtreecommitdiff
path: root/src/code/z_player_lib.c
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2024-07-27 23:47:58 -0400
committerGitHub <noreply@github.com>2024-07-27 23:47:58 -0400
commit7fcbf3f4b280e26284a8f62dbcb5b72d0e24dcc4 (patch)
tree57e67748c4f3ff8d7bd6da514f9ccdeb3acf8430 /src/code/z_player_lib.c
parentd905e08daf48db00a8383b6c8855277977a0f4d6 (diff)
Document `ANIM_FLAG_PLAYER_2` as `ANIM_FLAG_DISABLE_CHILD_ROOT_ADJUSTMENT` (#2001)
* name ANIM_FLAG_DISABLE_CHILD_ROOT_ADJUSTMENT * reword * typo
Diffstat (limited to 'src/code/z_player_lib.c')
-rw-r--r--src/code/z_player_lib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/code/z_player_lib.c b/src/code/z_player_lib.c
index 1c05d26f9..7b90a1e35 100644
--- a/src/code/z_player_lib.c
+++ b/src/code/z_player_lib.c
@@ -1125,13 +1125,14 @@ s32 Player_OverrideLimbDrawGameplayCommon(PlayState* play, s32 limbIndex, Gfx**
sCurBodyPartPos = &this->bodyPartsPos[0] - 1;
if (!LINK_IS_ADULT) {
- if (!(this->skelAnime.moveFlags & ANIM_FLAG_PLAYER_2) ||
+ if (!(this->skelAnime.moveFlags & ANIM_FLAG_DISABLE_CHILD_ROOT_ADJUSTMENT) ||
(this->skelAnime.moveFlags & ANIM_FLAG_UPDATE_XZ)) {
pos->x *= 0.64f;
pos->z *= 0.64f;
}
- if (!(this->skelAnime.moveFlags & ANIM_FLAG_PLAYER_2) || (this->skelAnime.moveFlags & ANIM_FLAG_UPDATE_Y)) {
+ if (!(this->skelAnime.moveFlags & ANIM_FLAG_DISABLE_CHILD_ROOT_ADJUSTMENT) ||
+ (this->skelAnime.moveFlags & ANIM_FLAG_UPDATE_Y)) {
pos->y *= 0.64f;
}
}