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 :/
This commit is contained in:
Bill Currie 2004-03-17 04:47:55 +00:00
parent ff5b215c13
commit 6c1c39c4d2

View file

@ -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)