From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Jul 2020 02:02:17 +0000 (+0200) Subject: strafehud: properly convert jump height into correct unit before comparing it with... X-Git-Tag: xonotic-v0.8.5~738^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8007f52058ce47304d9cfc9f738faab7a47d7f94;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: properly convert jump height into correct unit before comparing it with the minimum height cvar --- 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;