mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
restore original fix for "garbage lines at the top of weapon sprites" (#1485)
* Revert "fix garbage lines at the top of weapon sprites (#1377)" This reverts commit 6cccb751849b83d0f5e12b9c85f139f085d62db1. * restore original fix
This commit is contained in:
parent
2744c8a141
commit
27f1a65c60
@ -586,7 +586,13 @@ void R_ExecuteSetViewSize (void)
|
||||
|
||||
// psprite scales
|
||||
pspritescale = FixedDiv(viewwidth_nonwide, SCREENWIDTH); // killough 11/98
|
||||
pspriteiscale = FixedDiv(SCREENWIDTH, viewwidth_nonwide) + 1; // killough 11/98
|
||||
pspriteiscale = FixedDiv(SCREENWIDTH, viewwidth_nonwide); // killough 11/98
|
||||
|
||||
// [FG] 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
|
||||
while (FixedMul(pspriteiscale, pspritescale) < FRACUNIT)
|
||||
pspriteiscale++;
|
||||
|
||||
skyiscale = FixedDiv(160 << FRACBITS, focallength);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user