]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug with rotating bmodels
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 10:10:51 +0000 (10:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 10:10:51 +0000 (10:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9360 d7cf8633-e32d-0410-b094-e92efae38249

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