Splitscreen fix: half of GFZ1's invinc monitor should no longer appear above the bridge for player 2

I don't know if there's any other vid.height/viewheight confusion like this around, but that was the cause apparently
This commit is contained in:
Monster Iestyn 2016-04-10 20:27:55 +01:00
parent b9eed02123
commit 7830a9e27b

View file

@ -964,7 +964,7 @@ static void R_SplitSprite(vissprite_t *sprite, mobj_t *thing)
cutfrac = (INT16)((centeryfrac - FixedMul(testheight - viewz, sprite->scale))>>FRACBITS);
if (cutfrac < 0)
continue;
if (cutfrac > vid.height)
if (cutfrac > viewheight)
return;
// Found a split! Make a new sprite, copy the old sprite to it, and