]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: properly convert jump height into correct unit before comparing it with...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Jul 2020 02:02:17 +0000 (04:02 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Jul 2020 02:02:17 +0000 (04:02 +0200)
qcsrc/client/hud/panel/strafehud.qc

index da17d96e3bee46ee942b70318006d7feabac16f5..30c7f3a264e8acf9f225d1d17122eccc663755ec 100644 (file)
@@ -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;