Use more accurate light index (#1520)

This commit is contained in:
ceski 2024-02-20 16:49:38 -08:00 committed by GitHub
parent cfc207f108
commit 0c2e248f8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,7 @@ static void R_InitTextureMapping(void)
fov = FIELDOFVIEW;
slopefrac = finetangent[FINEANGLES / 4 + fov / 2];
focallength = FixedDiv(centerxfrac_nonwide, slopefrac);
lightfocallength = focallength;
lightfocallength = centerxfrac_nonwide;
projection = centerxfrac_nonwide;
if (centerxfrac != centerxfrac_nonwide)