From: havoc Date: Wed, 21 Oct 2009 01:10:14 +0000 (+0000) Subject: fix an error in the spinvelocity -> avelocity conversion X-Git-Tag: xonotic-v0.1.0preview~1267 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a5cf6f046693cb93a9764a8777705f01a6e97934;p=xonotic%2Fdarkplaces.git fix an error in the spinvelocity -> avelocity conversion git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9371 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/world.c b/world.c index f3cf9f95..00135163 100644 --- a/world.c +++ b/world.c @@ -1580,7 +1580,7 @@ static void World_Physics_Frame_BodyToEntity(world_t *world, prvm_edict_t *ed) Matrix4x4_ToVectors(&entitymatrix, forward, left, up, origin); AnglesFromVectors(angles, forward, up, true); - VectorSet(avelocity, RAD2DEG(spinvelocity[PITCH]), RAD2DEG(spinvelocity[YAW]), RAD2DEG(spinvelocity[ROLL])); + VectorSet(avelocity, RAD2DEG(spinvelocity[PITCH]), RAD2DEG(spinvelocity[ROLL]), RAD2DEG(spinvelocity[YAW])); val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.origin);if (val) VectorCopy(origin, val->vector); val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.velocity);if (val) VectorCopy(velocity, val->vector);