From cc796df4af7043c54637fecdd8f8b4fd6f40e059 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Sun, 17 Dec 2023 14:46:17 -0500 Subject: [PATCH] Match PlayerJumpInit --- src/player.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/player.c b/src/player.c index c2ceae5a1..50cdfbd04 100644 --- a/src/player.c +++ b/src/player.c @@ -834,7 +834,7 @@ static void PlayerJump(Entity* this) { } static void PlayerJumpInit(Entity* this) { - u32 temp; + s32 temp; this->subAction++; @@ -858,8 +858,11 @@ static void PlayerJumpInit(Entity* this) { this->direction = Direction8FromAnimationState(AnimationStateWalk(this->animationState)); temp = sub_08079FC4(1); - asm("lsl r0, r0, #0x4"); - this->zVelocity = (temp - 4) * 64 * 64; + + temp <<= 4; + temp -= 4; + + this->zVelocity = (temp << 12); this->speed = JUMP_SPEED_FWD; DeleteClones();