]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add missing onground check in strafe efficiency feature (fixes slick strafe%)
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Tue, 2 Feb 2021 10:22:07 +0000 (11:22 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Tue, 2 Feb 2021 10:22:34 +0000 (11:22 +0100)
qcsrc/server/strafe.qc

index d3bdb71638038a13d3cf2bb0394487601e8ef3cd..a2829d773a370aac8207d89375379336ab9b6a2d 100644 (file)
@@ -77,7 +77,7 @@ float calculate_strafe_efficiency(entity strafeplayer, vector movement)
 
         strafekeys = fabs(wishangle) == 90;
 
-        if(strafekeys && !swimming)
+        if(strafekeys && !onground && !swimming)
         {
             maxspeed = PHYS_MAXAIRSTRAFESPEED(strafeplayer); // no modifiers here because they don't affect air strafing
         }