]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix an issue with stepdown code
authorMario <zacjardine@y7mail.com>
Wed, 12 Sep 2018 22:23:10 +0000 (08:23 +1000)
committerMario <zacjardine@y7mail.com>
Wed, 12 Sep 2018 22:23:10 +0000 (08:23 +1000)
qcsrc/common/physics/movetypes/walk.qc

index c20e82e8342825a9282142d288281ceffea2583d..d41802963a27b2df248313dd89b5f20c2324060a 100644 (file)
@@ -144,7 +144,8 @@ void _Movetype_Physics_Walk(entity this, float dt)  // SV_WalkMove
        }
 
        // move down
-       vector downmove = '0 0 1' * (-PHYS_STEPHEIGHT(this) + start_velocity.z * dt);
+       vector downmove = '0 0 0';
+       downmove.z = -PHYS_STEPHEIGHT(this) + start_velocity.z * dt;
        _Movetype_PushEntity(this, downmove, true);
        if(wasfreed(this))
                return;