mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-30 00:32:15 -04:00
fix of hanging decoration disappearing (#690)
This commit is contained in:
parent
304d3622e8
commit
6137fb4143
@ -488,7 +488,7 @@ void R_ExecuteSetViewSize (void)
|
|||||||
centeryfrac = centery<<FRACBITS;
|
centeryfrac = centery<<FRACBITS;
|
||||||
centerxfrac_nonwide = (viewwidth_nonwide/2)<<FRACBITS;
|
centerxfrac_nonwide = (viewwidth_nonwide/2)<<FRACBITS;
|
||||||
projection = centerxfrac_nonwide;
|
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
|
R_InitBuffer(scaledviewwidth, scaledviewheight); // killough 11/98
|
||||||
|
|
||||||
|
@ -567,7 +567,7 @@ void R_ProjectSprite (mobj_t* thing)
|
|||||||
gzt = interpz + spritetopoffset[lump];
|
gzt = interpz + spritetopoffset[lump];
|
||||||
|
|
||||||
// killough 4/9/98: clip things which are out of view due to height
|
// 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))
|
gzt < (int64_t)viewz - FixedDiv(viewheightfrac - viewheight, xscale))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user