]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: remove unneeded IS_DEAD()
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Jul 2020 00:50:49 +0000 (02:50 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Jul 2020 00:50:49 +0000 (02:50 +0200)
qcsrc/client/hud/panel/strafehud.qc

index e4a91d42e059be3bcf2084e9ca5b6782addd2826..8e0ebfdbf64b2d0ae3e51f1376b7e84ebd6b6ecc 100644 (file)
@@ -659,7 +659,7 @@ void HUD_StrafeHUD()
             float jumpheight_min = max(autocvar_hud_panel_strafehud_jumpheight_min * length_conversion_factor, 0);
             float jumpheight_current = strafeplayer.origin.z;
             float jumpspeed_current = strafeplayer.velocity.z;
-            if(jumpspeed_prev <= jumpspeed_current || jumpheight_prev > jumpheight_current || IS_ONGROUND(strafeplayer) || swimming || IS_DEAD(strafeplayer))
+            if(jumpspeed_prev <= jumpspeed_current || jumpheight_prev > jumpheight_current || IS_ONGROUND(strafeplayer) || swimming)
             {
                 jumprestart = true;
             }