fix garbage lines at the top of weapon sprites (#1377)

Make sure that the product of the weapon sprite scale factor
and its reciprocal is always at least FRACUNIT to
fix garbage lines at the top of weapon sprites.

See
b8aa0e7d8b

Fixes #1371
This commit is contained in:
Fabian Greffrath 2024-01-06 19:37:14 +01:00 committed by GitHub
parent 1a907867af
commit 6cccb75184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,7 +509,7 @@ void R_ExecuteSetViewSize (void)
// psprite scales
pspritescale = FixedDiv(viewwidth_nonwide, SCREENWIDTH); // killough 11/98
pspriteiscale= FixedDiv(SCREENWIDTH, viewwidth_nonwide); // killough 11/98
pspriteiscale= FixedDiv(SCREENWIDTH, viewwidth_nonwide) + 1; // killough 11/98
// thing clipping
for (i=0 ; i<viewwidth ; i++)