From 73e25915f7fd668a887221bf7658d19c1d48c5ee Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 1 Jul 2005 22:39:31 +0000 Subject: [PATCH] allow multiple lightning beams owned by world git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5477 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2