From: havoc Date: Fri, 1 Jul 2005 22:39:31 +0000 (+0000) Subject: allow multiple lightning beams owned by world X-Git-Tag: xonotic-v0.1.0preview~4709 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=73e25915f7fd668a887221bf7658d19c1d48c5ee;p=xonotic%2Fdarkplaces.git allow multiple lightning beams owned by world git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5477 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index 29b663f6..de562876 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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;