From 6c1c39c4d2c3f6b39f234248300c118902f4be8a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 17 Mar 2004 04:47:55 +0000 Subject: [PATCH] don't fudge the maxdist by 0.75. no clue why that was done, but it was the cause of the bogusly lit surfaces (not sure why, though. imaginary numbers, maybe?). timedemo runs are a little more variable :/ --- libs/video/renderer/gl/gl_lightmap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/video/renderer/gl/gl_lightmap.c b/libs/video/renderer/gl/gl_lightmap.c index e2d53bf60..fb19f92d9 100644 --- a/libs/video/renderer/gl/gl_lightmap.c +++ b/libs/video/renderer/gl/gl_lightmap.c @@ -146,8 +146,7 @@ R_AddDynamicLights_1 (msurface_t *surf) surf->texinfo->vecs[1][3] - surf->texturemins[1]; // for comparisons to minimum acceptable light - maxdist = (int) ((r_dlights[lnum].radius * r_dlights[lnum].radius) * - 0.75); + maxdist = (int) (r_dlights[lnum].radius * r_dlights[lnum].radius); // clamp radius to avoid exceeding 8192 entry division table if (maxdist > 1048576) @@ -211,8 +210,7 @@ R_AddDynamicLights_3 (msurface_t *surf) surf->texinfo->vecs[1][3] - surf->texturemins[1]; // for comparisons to minimum acceptable light - maxdist = (int) ((r_dlights[lnum].radius * r_dlights[lnum].radius) * - 0.75); + maxdist = (int) (r_dlights[lnum].radius * r_dlights[lnum].radius); // clamp radius to avoid exceeding 8192 entry division table if (maxdist > 1048576)