Skip to content

Commit

Permalink
Fix bxt_hud_jumpspeed using velocity of one frame after jump
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Oct 14, 2022
1 parent 8e896fc commit 22e8573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BunnymodXT/hud_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ namespace CustomHud
if ((player.velocity[2] != 0.0f && prevVel[2] == 0.0f)
|| (player.velocity[2] > 0.0f && prevVel[2] < 0.0f))
{
double difference = length(player.velocity[0], player.velocity[1]) - jumpSpeed;
double difference = length(prevVel[0], prevVel[1]) - jumpSpeed;
if (difference != 0.0f)
{
if (difference > 0.0f)
Expand Down

0 comments on commit 22e8573

Please sign in to comment.