"fix" overflow in R_InitViewMapping with high resolutions

This commit is contained in:
Alug committed 2026-02-01 17:07:10 +01:00
1 parent 9ac5754e1d
commit aa9ffbe8cd
1 file changed
+2 -2
+2 -2
View File
@@ -1018,8 +1018,8 @@ static void R_InitViewMapping(void)
for (INT32 i = 0; i < j; i++)
{
fixed_t dy = (i - viewheight*8)<<FRACBITS;
dy = FixedMul(abs(dy), fovtan);
fixed_t dy = abs(i - viewheight*8) << FRACBITS;
dy = FixedMul(dy, fovtan);
yslopetab[i] = FixedDiv(centerx*FRACUNIT, dy);
}
}