From a5cf6f046693cb93a9764a8777705f01a6e97934 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 21 Oct 2009 01:10:14 +0000 Subject: [PATCH] fix an error in the spinvelocity -> avelocity conversion git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9371 d7cf8633-e32d-0410-b094-e92efae38249 --- world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2