Fix Heatwave Post-processing Effect in 3P/4P

This commit is contained in:
Sryder 2019-05-27 22:59:58 +01:00
parent a2a63c5e7f
commit ab7246d1f7
1 changed files with 2 additions and 5 deletions

View File

@ -2404,7 +2404,7 @@ INT32 V_ThinStringWidth(const char *string, INT32 option)
boolean *heatshifter = NULL; boolean *heatshifter = NULL;
INT32 lastheight = 0; INT32 lastheight = 0;
INT32 heatindex[2] = { 0, 0 }; INT32 heatindex[MAXSPLITSCREENPLAYERS] = {0, 0, 0, 0};
// //
// V_DoPostProcessor // V_DoPostProcessor
@ -2537,9 +2537,6 @@ Unoptimized version
UINT8 *srcscr = screens[0]; UINT8 *srcscr = screens[0];
INT32 y; INT32 y;
if (splitscreen > 1) // 3P/4P has trouble supporting this, anyone want to fix it? :p
return;
// Make sure table is built // Make sure table is built
if (heatshifter == NULL || lastheight != viewheight) if (heatshifter == NULL || lastheight != viewheight)
{ {
@ -2554,7 +2551,7 @@ Unoptimized version
heatshifter[y] = true; heatshifter[y] = true;
} }
heatindex[0] = heatindex[1] = 0; heatindex[0] = heatindex[1] = heatindex[2] = heatindex[3] = 0;
lastheight = viewheight; lastheight = viewheight;
} }