From ccb22843bf6d7cd04577f1917858a4467c41587d Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Tue, 29 Mar 2022 22:29:08 +0300 Subject: [PATCH] soft: use float for medium light --- src/client/refresh/soft/sw_alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/refresh/soft/sw_alias.c b/src/client/refresh/soft/sw_alias.c index 04fe3bca..076fd6b4 100644 --- a/src/client/refresh/soft/sw_alias.c +++ b/src/client/refresh/soft/sw_alias.c @@ -588,7 +588,7 @@ R_AliasSetupLighting(entity_t *currententity) 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; }