From 49fe4e9f057408f8cd6520fae48a732cd1757646 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 11 Oct 2001 06:54:29 +0000 Subject: [PATCH] fix a misplaced s&r --- libs/video/renderer/gl/gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/gl/gl_rsurf.c b/libs/video/renderer/gl/gl_rsurf.c index 941b7d859..539111b3f 100644 --- a/libs/video/renderer/gl/gl_rsurf.c +++ b/libs/video/renderer/gl/gl_rsurf.c @@ -236,7 +236,7 @@ R_BuildLightMap (msurface_t *surf, byte * dest, int stride) // add all the lightmaps if (lightmap) { - for (maps = 0; maps < r_maxdlights && surf->styles[maps] != 255; + for (maps = 0; maps < MAXLIGHTMAPS && surf->styles[maps] != 255; maps++) { scale = d_lightstylevalue[surf->styles[maps]]; surf->cached_light[maps] = scale; // 8.8 fraction