allow multiple lightning beams owned by world
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Jul 2005 22:39:31 +0000 (22:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Jul 2005 22:39:31 +0000 (22:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5477 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 29b663f..de56287 100644 (file)
@@ -862,7 +862,7 @@ void CL_ParseBeam (model_t *m, int lightning)
        // override any beam with the same entity
        for (i = 0, b = cl_beams;i < cl_max_beams;i++, b++)
        {
-               if (b->entity == ent)
+               if (b->entity == ent && ent)
                {
                        //b->entity = ent;
                        b->lightning = lightning;