diff options
Diffstat (limited to 'src/refresh/sw/light.c')
-rw-r--r-- | src/refresh/sw/light.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/refresh/sw/light.c b/src/refresh/sw/light.c index b256ab5..ec31e37 100644 --- a/src/refresh/sw/light.c +++ b/src/refresh/sw/light.c @@ -322,12 +322,16 @@ void R_BuildLightMap(void) // bound, invert, and shift for (i = 0; i < size; i++) { t = blocklights[i]; +#if 0 if (t < 0) t = 0; t = (255 * 256 - t) >> (8 - VID_CBITS); if (t < (1 << 6)) t = (1 << 6); +#else + clamp(t, 255, 65535); +#endif blocklights[i] = t; } |