soft: use float for medium light

This commit is contained in:
Denis Pauk 2022-03-29 22:29:08 +03:00
parent e650eff100
commit ccb22843bf

View file

@ -588,7 +588,7 @@ R_AliasSetupLighting(entity_t *currententity)
if(r_colorlight->value < 2) if(r_colorlight->value < 2)
{ {
float temp = (light[0] + light[1] + light[2]) / 3; float temp = (light[0] + light[1] + light[2]) / 3.0;
light[0] = light[1] = light[2] = temp; light[0] = light[1] = light[2] = temp;
} }