]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.c
fix an error in the spinvelocity -> avelocity conversion
[xonotic/darkplaces.git] / 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);