From 22e85734313f77548d7b32045d1253ccfbe16146 Mon Sep 17 00:00:00 2001 From: khang Date: Fri, 14 Oct 2022 00:31:05 -0400 Subject: [PATCH] Fix bxt_hud_jumpspeed using velocity of one frame after jump --- BunnymodXT/hud_custom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BunnymodXT/hud_custom.cpp b/BunnymodXT/hud_custom.cpp index 581db2e8..1304beaa 100644 --- a/BunnymodXT/hud_custom.cpp +++ b/BunnymodXT/hud_custom.cpp @@ -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)