Skip to content

Commit

Permalink
PlayerStateJump: Fix calcJumpSpeed-calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterDruide1 committed Jun 9, 2024
1 parent c800f7a commit 210bbe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Player/PlayerStateJump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void PlayerStateJump::appear() {
jumpPowerMax = mConst->getJumpPowerForceRun();
}

mJumpPower = PlayerActionFunction::calcJumpSpeed(jumpPowerMax, frontVelocityLength, minSpeed, maxSpeed, jumpPowerMin);
mJumpPower = PlayerActionFunction::calcJumpSpeed(frontVelocityLength, minSpeed, maxSpeed, jumpPowerMin, jumpPowerMax);

f32 jumpGravity;
if(mCounterForceRun->getCounter() < 1) {
Expand Down Expand Up @@ -346,6 +346,7 @@ void PlayerStateJump::exeJump() {
}

bool v43 = mCounterForceRun->getCounter() < 1 ? rs::isOnGround(mActor, mCollision) : rs::isOnGroundAndGravity(mActor, mCollision);
printf("v43: %s\n", v43 ? "true" : "false");

if(rs::isCollidedCeiling(mCollision) && !al::isFirstStep(this)) {
rs::reflectCeiling(mActor, 0.0f);
Expand Down

0 comments on commit 210bbe7

Please sign in to comment.