From 8007f52058ce47304d9cfc9f738faab7a47d7f94 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Jul 2020 04:02:17 +0200 Subject: [PATCH] strafehud: properly convert jump height into correct unit before comparing it with the minimum height cvar --- qcsrc/client/hud/panel/strafehud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index da17d96e3..30c7f3a26 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -681,7 +681,7 @@ void HUD_StrafeHUD() { jumpheight += jumpheight_current - jumpheight_prev; } - if(jumpheight > jumpheight_min && jumpheight > jumpheight_persistent) + if((jumpheight * length_conversion_factor) > jumpheight_min && jumpheight > jumpheight_persistent) { jumptime = time; jumpheight_persistent = jumpheight; -- 2.39.2