From: havoc Date: Fri, 30 Mar 2007 08:26:37 +0000 (+0000) Subject: fix the corona view distance culling checks, had the values swapped between rtlight... X-Git-Tag: xonotic-v0.1.0preview~3391 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4aa2c985cb060f91b635172681911a91277d91e1;p=xonotic%2Fdarkplaces.git fix the corona view distance culling checks, had the values swapped between rtlight/dlight cases git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7027 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_light.c b/r_light.c index 86326396..327c7e3b 100644 --- a/r_light.c +++ b/r_light.c @@ -94,7 +94,7 @@ void R_DrawCoronas(void) continue; cscale = rtlight->corona * r_coronas.value* 0.25f; scale = rtlight->radius * rtlight->coronasizescale; - if (VectorDistance2(rtlight->shadoworigin, r_view.origin) < 32.0f * 32.0f) + if (VectorDistance2(rtlight->shadoworigin, r_view.origin) < 16.0f * 16.0f) continue; if (CL_Move(rtlight->shadoworigin, vec3_origin, vec3_origin, r_view.origin, MOVE_NOMONSTERS, NULL, SUPERCONTENTS_SOLID, true, false, NULL, false).fraction < 1) continue; @@ -107,7 +107,7 @@ void R_DrawCoronas(void) continue; if (rtlight->corona <= 0) continue; - if (VectorDistance2(rtlight->shadoworigin, r_view.origin) < 16.0f * 16.0f) + if (VectorDistance2(rtlight->shadoworigin, r_view.origin) < 32.0f * 32.0f) continue; if (gl_flashblend.integer) {