Skip to content

Commit

Permalink
Improve full stall recovery speed
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
  • Loading branch information
Octol1ttle committed Feb 20, 2024
1 parent 6a250ed commit 3e58441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private float computeMaximumSafePitch() {
if (!data.isFlying) {
return 90.0f;
}
return status == StallStatus.STALL ? 0.0f : MathHelper.clamp(data.speed * 3, 0.0f, 90.0f);
return status == StallStatus.STALL ? -90.0f : MathHelper.clamp(data.speed * 3.0f, 0.0f, 90.0f);
}

@Override
Expand Down

0 comments on commit 3e58441

Please sign in to comment.