]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
make movedir_y fps independent
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Oct 2009 08:08:29 +0000 (08:08 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Oct 2009 08:08:29 +0000 (08:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9379 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index 6aa27808130df41dd4ce8b2fc33460c8130a99d8..22e67a0997d70578b5a09cb6b4528f270d658fe9 100644 (file)
--- a/world.c
+++ b/world.c
@@ -1756,6 +1756,7 @@ static void World_Physics_Frame_JointFromEntity(world_t *world, prvm_edict_t *ed
                movedir[0] = CFM;
                movedir[2] = ERP;
        }
+       movedir[1] *= H; // make movedir[1] actually "force per second" to allow this to be used for non-springs
        if(jointtype == ed->priv.server->ode_joint_type && VectorCompare(origin, ed->priv.server->ode_joint_origin) && VectorCompare(velocity, ed->priv.server->ode_joint_velocity) && VectorCompare(angles, ed->priv.server->ode_joint_angles) && enemy == ed->priv.server->ode_joint_enemy && aiment == ed->priv.server->ode_joint_aiment && VectorCompare(movedir, ed->priv.server->ode_joint_movedir))
                return; // nothing to do
        AngleVectorsFLU(angles, forward, left, up);