]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix an error in the spinvelocity -> avelocity conversion
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Oct 2009 01:10:14 +0000 (01:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Oct 2009 01:10:14 +0000 (01:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9371 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index f3cf9f95aef55f8a7f12be12544eb49bc84563a6..0013516370a32d7c24774676bab28ab516f55ac0 100644 (file)
--- 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);