viewmodels should not emit dlights (they spawn around 0 0 0), thanks to Tomaz for...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jul 2003 18:12:51 +0000 (18:12 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jul 2003 18:12:51 +0000 (18:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3308 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 8522d7c..d47902f 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -714,7 +714,7 @@ void CL_RelinkNetworkEntity(entity_t *e)
                        CL_RocketTrail(oldorg, r->origin, trailtype, e);
        }
 
-       if (dlightcolor[0] || dlightcolor[1] || dlightcolor[2])
+       if ((dlightcolor[0] || dlightcolor[1] || dlightcolor[2]) && !(r->flags & RENDER_VIEWMODEL))
        {
                VectorCopy(r->origin, v);
                // hack to make glowing player light shine on their gun