Resolve #237 - water ripple effects no longer show garbage in splitscreen.

This commit is contained in:
toaster 2022-04-17 21:57:06 +01:00
parent cc76f4d052
commit 8563074ee0

View file

@ -921,8 +921,8 @@ void R_DrawSinglePlane(visplane_t *pl)
if (top < 0) if (top < 0)
top = 0; top = 0;
if (bottom > vid.height) if (bottom > viewheight)
bottom = vid.height; bottom = viewheight;
// Only copy the part of the screen we need // Only copy the part of the screen we need
for (i = 0; i <= r_splitscreen; i++) for (i = 0; i <= r_splitscreen; i++)
@ -956,9 +956,10 @@ void R_DrawSinglePlane(visplane_t *pl)
offset = (scry*vid.width) + scrx; offset = (scry*vid.width) + scrx;
// No idea if this works // No idea if this works
VID_BlitLinearScreen(screens[0] + offset, screens[1] + offset, VID_BlitLinearScreen(screens[0] + offset,
viewwidth, bottom-top, screens[1] + (top*vid.width), // intentionally not +offset
vid.width, vid.width); viewwidth, bottom-top,
vid.width, vid.width);
} }
} }
} }