]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
fix bug that caused trails to not appear at the right place
[xonotic/darkplaces.git] / 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...