From 0c2e248f8bfd08344abb0c17188ad163f6a19a56 Mon Sep 17 00:00:00 2001 From: ceski <56656010+ceski-1@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:49:38 -0800 Subject: [PATCH] Use more accurate light index (#1520) --- src/r_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_main.c b/src/r_main.c index 91c0c31c..cfdea623 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -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)