From 868f0acb1802c56e487d7fda68c598bc39f9c6cd Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 15 Mar 2025 18:41:33 +0100 Subject: [PATCH] this needs be multiplied by 8 lel oops --- src/hardware/hw_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index c76379e59..46b17f117 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -514,7 +514,7 @@ static FUINT HWR_CalcSlopeLight(FUINT lightnum, pslope_t *slope, const sector_t if (slope != NULL && sector != NULL && P_ApplyLightOffsetFine(lightnum, sector)) { - INT16 offset = (cv_glfakecontrast.value == 2) ? slope->hwLightOffset : (INT16)slope->lightOffset; + INT16 offset = (cv_glfakecontrast.value == 2) ? slope->hwLightOffset : ((INT16)slope->lightOffset * 8); finallight += (fof ? -offset : offset); finallight = CLAMP(finallight, 0 , 255);