From: havoc Date: Tue, 20 Oct 2009 10:10:51 +0000 (+0000) Subject: fix bug with rotating bmodels X-Git-Tag: xonotic-v0.1.0preview~1276 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c5c3f58deeac178a23bc2276d541bdfb672c67fc;p=xonotic%2Fdarkplaces.git fix bug with rotating bmodels git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9360 d7cf8633-e32d-0410-b094-e92efae38249 --- 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