From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 14 Sep 2022 09:35:07 +0000 (+0200) Subject: strafehud: also reset maxspeed to ground physics in timeout code X-Git-Tag: xonotic-v0.8.6~136^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c55dd5bc4ad6100431f82f45afc4633adaa3184f;p=xonotic%2Fxonotic-data.pk3dir.git strafehud: also reset maxspeed to ground physics in timeout code --- diff --git a/qcsrc/client/hud/panel/strafehud.qc b/qcsrc/client/hud/panel/strafehud.qc index 49a627185..04c641994 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -181,8 +181,12 @@ void HUD_StrafeHUD() if(!onground && !onground_expired) // if ground timeout hasn't expired yet use ground physics { onground = true; + if(!autocvar__hud_configure) + { + maxspeed = PHYS_MAXSPEED(strafeplayer) * maxspeed_mod; maxaccel = PHYS_ACCELERATE(strafeplayer); + } } movespeed = vlen(vec2(movement));