From: havoc Date: Tue, 22 Jul 2003 18:12:51 +0000 (+0000) Subject: viewmodels should not emit dlights (they spawn around 0 0 0), thanks to Tomaz for... X-Git-Tag: xonotic-v0.1.0preview~6501 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=15d6d05dd61474b483f78c871bff5b1acba6e337;p=xonotic%2Fdarkplaces.git viewmodels should not emit dlights (they spawn around 0 0 0), thanks to Tomaz for reporting this git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3308 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 8522d7c2..d47902f8 100644 --- 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