]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.c
fix bug with rotating bmodels
[xonotic/darkplaces.git] / world.c
diff --git a/world.c b/world.c
index a6941b4ad8aa115bb758b65164d66c12161c810e..e0b218246315f4f98a2e94754c7d033b6bc93e8a 100644 (file)
--- a/world.c
+++ b/world.c
@@ -1845,7 +1845,7 @@ static void World_Physics_Frame_BodyFromEntity(world_t *world, prvm_edict_t *ed)
                VectorClear(angles);
                VectorClear(avelocity);
                val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.angles);if (val) VectorCopy(val->vector, angles);
-               val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.velocity);if (val) VectorCopy(val->vector, avelocity);
+               val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.avelocity);if (val) VectorCopy(val->vector, avelocity);
                AngleVectorsFLU(angles, forward, left, up);
                // convert single-axis rotations in avelocity to spinvelocity
                // FIXME: untested math - check signs