]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
fix for beams coming from invisible objects
[xonotic/darkplaces.git] / cl_main.c
index d64715fa5378b492b7e5c67372b59bb7a054688b..f0259e3717c44b3a5231c1033ac4783b8962cfb5 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -849,7 +849,7 @@ void CL_RelinkBeams (void)
                // if coming from the player, update the start position
                //if (b->entity == cl.viewentity)
                //      VectorCopy (cl_entities[cl.viewentity].render.origin, b->start);
-               if (b->entity)
+               if (b->entity && cl_entities[b->entity].state_current.active)
                {
                        VectorCopy (cl_entities[b->entity].render.origin, b->start);
                        b->start[2] += 16;