mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
soft: use float for medium light
This commit is contained in:
parent
e650eff100
commit
ccb22843bf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue