mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Resolve #237 - water ripple effects no longer show garbage in splitscreen.
This commit is contained in:
parent
cc76f4d052
commit
8563074ee0
1 changed files with 6 additions and 5 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue