From 596b96fffc38f65dec1d14342c2895e2021f0e0f Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 22 Oct 2009 08:08:29 +0000 Subject: [PATCH] make movedir_y fps independent git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9379 d7cf8633-e32d-0410-b094-e92efae38249 --- world.c | 1 + 1 file changed, 1 insertion(+) diff --git a/world.c b/world.c index 6aa27808..22e67a09 100644 --- 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); -- 2.39.2