From 0e8ba7cc120a59b749425c145b2dc70123872bc4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 14 Feb 2004 07:38:01 +0000 Subject: [PATCH] oops, committed the wrong file --- libs/video/renderer/r_light.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/video/renderer/r_light.c b/libs/video/renderer/r_light.c index 7bf030b67..61987fcda 100644 --- a/libs/video/renderer/r_light.c +++ b/libs/video/renderer/r_light.c @@ -287,6 +287,8 @@ R_MarkLights (const vec3_t lightorigin, dlight_t *light, int bit, || leaf->mins[1] > maxs[1] || leaf->maxs[1] < mins[1] || leaf->mins[2] > maxs[2] || leaf->maxs[2] < mins[2]) continue; + if (R_CullBox (leaf->mins, leaf->maxs)) + continue; if (leaf->dlightframe != r_framecount) { leaf->dlightbits = 0; leaf->dlightframe = r_framecount;