From 6cccb751849b83d0f5e12b9c85f139f085d62db1 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Sat, 6 Jan 2024 19:37:14 +0100 Subject: [PATCH] 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 https://github.com/coelckers/prboom-plus/commit/b8aa0e7d8ba5bb6b27f521135ff23d4c33d0d427 Fixes #1371 --- 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 84be3461..342d8637 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -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