From: divverent Date: Thu, 22 Oct 2009 08:08:29 +0000 (+0000) Subject: make movedir_y fps independent X-Git-Tag: xonotic-v0.1.0preview~1259 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=596b96fffc38f65dec1d14342c2895e2021f0e0f;p=xonotic%2Fdarkplaces.git make movedir_y fps independent git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9379 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);