summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2024-10-21 11:30:39 +1100
committerGitHub <noreply@github.com>2024-10-20 17:30:39 -0700
commitea323f1712b36aeefa9d770fae5e46cce0dce65f (patch)
treee28aea613df4ccd893c1c2c4cd9d779105caad29 /src/code
parenta7461640410c87c73f7e7283fdb229a4818ac244 (diff)
Player Docs: speedXZ and yaw (#1724)
* rename struct members * PR
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_bg_collect.c2
-rw-r--r--src/code/z_player_lib.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_bg_collect.c b/src/code/z_bg_collect.c
index b0c0971ea..e4a6072ce 100644
--- a/src/code/z_bg_collect.c
+++ b/src/code/z_bg_collect.c
@@ -54,7 +54,7 @@ void DynaPolyActor_UpdateCarriedActorRotY(CollisionContext* colCtx, s32 bgId, Ac
rotY = colCtx->dyna.bgActors[bgId].curTransform.rot.y - colCtx->dyna.bgActors[bgId].prevTransform.rot.y;
if (carriedActor->id == ACTOR_PLAYER) {
- ((Player*)carriedActor)->currentYaw += rotY;
+ ((Player*)carriedActor)->yaw += rotY;
}
carriedActor->shape.rot.y += rotY;
diff --git a/src/code/z_player_lib.c b/src/code/z_player_lib.c
index 88e1f0808..bee458ad5 100644
--- a/src/code/z_player_lib.c
+++ b/src/code/z_player_lib.c
@@ -224,7 +224,7 @@ void func_801229FC(Player* player) {
s32 i;
for (i = 0; i < D_801F59B0_LEN; i++) {
- D_801F59C8[i] += Rand_S16Offset(4, 23) + (s32)(fabsf(player->linearVelocity) * 50.0f);
+ D_801F59C8[i] += Rand_S16Offset(4, 23) + (s32)(fabsf(player->speedXZ) * 50.0f);
}
}
}
@@ -716,7 +716,7 @@ s32 func_801235DC(PlayState* play, f32 arg1, s16 arg2) {
if (player->stateFlags3 & PLAYER_STATE3_1000) {
player->unk_B08 = arg1;
player->unk_B0C += arg1 * 0.05f;
- player->currentYaw = arg2;
+ player->yaw = arg2;
player->actor.home.rot.y = arg2;
player->actor.shape.rot.y = arg2;
player->unk_B8C = 4;