From 7830a9e27baa14c6ad9318669ff6129446071d51 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Sun, 10 Apr 2016 20:27:55 +0100 Subject: [PATCH] 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 --- src/r_things.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index 5616c222..2ec2f6ea 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -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