]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
strafehud: also reset maxspeed to ground physics in timeout code
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 14 Sep 2022 09:35:07 +0000 (11:35 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 14 Sep 2022 09:35:07 +0000 (11:35 +0200)
qcsrc/client/hud/panel/strafehud.qc

index 49a627185ab4fe4de42573331ab03ebe62d1c9b7..04c641994f6db4f0eaa8ad4ac592f87f521ccbaf 100644 (file)
@@ -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));