]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug that caused trails to not appear at the right place
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Feb 2007 06:53:36 +0000 (06:53 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Feb 2007 06:53:36 +0000 (06:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6837 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 89da9e65ef035d2997343dcde64fb019b50ddf55..3b4949b378b13dc8701707b57621b98506256887 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1002,6 +1002,8 @@ void CL_UpdateNetworkEntityTrail(entity_t *e)
                VectorMAM(0.5f, e->render.model->normalmins, 0.5f, e->render.model->normalmaxs, o);
                Matrix4x4_Transform(&e->render.matrix, o, origin);
        }
+       else
+               Matrix4x4_OriginFromMatrix(&e->render.matrix, origin);
 
        // handle particle trails and such effects now that we know where this
        // entity is in the world...