From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 14 Sep 2022 09:36:44 +0000 (+0200) Subject: Add patch from Juhu/strafehud-fixes branch: "strafehud: also reset maxspeed to ground... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc3d1530b428c3301ac384f6bc5d3bd8095c40ce;p=xonotic%2Fxonotic-data.pk3dir.git Add patch from Juhu/strafehud-fixes branch: "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 599b1f2c6..b7d79a38e 100644 --- a/qcsrc/client/hud/panel/strafehud.qc +++ b/qcsrc/client/hud/panel/strafehud.qc @@ -202,8 +202,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));