soft: use max light in blocklights (colorlight=0)

This commit is contained in:
Denis Pauk 2022-03-22 08:53:59 +02:00
parent 3b825670ba
commit a0da1717cc

View file

@ -450,9 +450,16 @@ R_BuildLightMap (drawsurf_t* drawsurf)
{
do
{
light_t light = (
lightmap[0] + lightmap[1] + lightmap[2]
) / 3 * scale;
light_t light;
light = lightmap[0];
if (light < lightmap[1])
light = lightmap[1];
if (light < lightmap[2])
light = lightmap[2];
light *= scale;
*curr_light += light;
curr_light++;
*curr_light += light;