From c5c3f58deeac178a23bc2276d541bdfb672c67fc Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 20 Oct 2009 10:10:51 +0000 Subject: [PATCH] fix bug with rotating bmodels git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9360 d7cf8633-e32d-0410-b094-e92efae38249 --- world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.c b/world.c index a6941b4a..e0b21824 100644 --- 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 -- 2.39.2