]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 29b663f63a928dbd06a723338f4abc58c2793148..de5628766b8391f863d2ea92d5c53646f8baa70b 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;