From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Jul 2020 00:50:49 +0000 (+0200) Subject: strafehud: remove unneeded IS_DEAD() X-Git-Tag: xonotic-v0.8.5~738^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=309768dd7cf2cfdfef183d2a8d965166c2f9be1d;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: remove unneeded IS_DEAD() --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index e4a91d42e..8e0ebfdbf 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -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; }