fix of hanging decoration disappearing (#690)

This commit is contained in:
Roman Fomin 2022-08-03 15:27:21 +07:00 committed by GitHub
parent 304d3622e8
commit 6137fb4143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ void R_ExecuteSetViewSize (void)
centeryfrac = centery<<FRACBITS;
centerxfrac_nonwide = (viewwidth_nonwide/2)<<FRACBITS;
projection = centerxfrac_nonwide;
viewheightfrac = viewheight<<FRACBITS; // [FG] sprite clipping optimizations
viewheightfrac = viewheight<<(FRACBITS+1); // [FG] sprite clipping optimizations
R_InitBuffer(scaledviewwidth, scaledviewheight); // killough 11/98

View File

@ -567,7 +567,7 @@ void R_ProjectSprite (mobj_t* thing)
gzt = interpz + spritetopoffset[lump];
// killough 4/9/98: clip things which are out of view due to height
if (interpz > viewz + FixedDiv(viewheightfrac, xscale) ||
if (interpz > (int64_t)viewz + FixedDiv(viewheightfrac, xscale) ||
gzt < (int64_t)viewz - FixedDiv(viewheightfrac - viewheight, xscale))
return;