From ece9a98a968f445ced114ad91baebc968454a147 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 19 Sep 2002 23:51:53 +0000 Subject: [PATCH] fix for beams coming from invisible objects git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2396 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_main.c b/cl_main.c index d64715fa..f0259e37 100644 --- 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; -- 2.39.2