Skip to content

Commit

Permalink
Match PlayerJumpInit
Browse files Browse the repository at this point in the history
  • Loading branch information
AreaZR committed Dec 17, 2023
1 parent d35d816 commit cc796df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ static void PlayerJump(Entity* this) {
}

static void PlayerJumpInit(Entity* this) {
u32 temp;
s32 temp;

this->subAction++;

Expand All @@ -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();
Expand Down

0 comments on commit cc796df

Please sign in to comment.