]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix jumpspeed not working when !islocal
authorotta8634 <k9wolf@pm.me>
Mon, 30 Sep 2024 12:53:35 +0000 (20:53 +0800)
committerotta8634 <k9wolf@pm.me>
Mon, 30 Sep 2024 12:53:35 +0000 (20:53 +0800)
Removed the real_onground check
Player shouldn't really be onground if they're holding jump & just jumped
Couldn't find any situations where this change breaks things

qcsrc/client/hud/panel/physics.qc

index a03023e41392ce6b330135a4c1c8aebc8f7dcb5b..6fdb453229923246e996790d98f149967c258069 100644 (file)
@@ -177,7 +177,7 @@ void HUD_Physics()
                }
                else
                {
-                       if (vel_phys.z > prev_vel_z && jumpheld && !real_onground && !swimming && alive_player)
+                       if (vel_phys.z > prev_vel_z && jumpheld && !swimming && alive_player)
                        {
                                // NOTE: this includes some situations where the player doesn't explicitly jump (e.g. jumppad, weapon kb)
                                // excluding them would be difficult. maybe they can be left in?