]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 8522d7c2806ac99af047e3a4ba2cda8062119281..d47902f83721e474bf024d65c85a4599797f13a1 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