From: Mario Date: Wed, 12 Sep 2018 22:23:10 +0000 (+1000) Subject: Fix an issue with stepdown code X-Git-Tag: xonotic-v0.8.5~1876 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2cd50f3866e49d31ffe72743e43e36cbf116664d;p=xonotic%2Fxonotic-data.pk3dir.git Fix an issue with stepdown code --- diff --git a/qcsrc/common/physics/movetypes/walk.qc b/qcsrc/common/physics/movetypes/walk.qc index c20e82e83..d41802963 100644 --- a/qcsrc/common/physics/movetypes/walk.qc +++ b/qcsrc/common/physics/movetypes/walk.qc @@ -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;