choose next column like Vanilla, we may not run through the entire column

This commit is contained in:
Fabian Greffrath 2021-01-12 09:24:11 +01:00
parent 314e8d5e51
commit f0c5d0733f

View File

@ -390,7 +390,9 @@ void V_DrawPatchGeneral(int x, int y, int scrn, patch_t *patch,
dest += SCREENWIDTH*4;
}
while (--count);
column = (column_t *)(source+1); //killough 2/21/98 even faster
// column = (column_t *)(source+1); //killough 2/21/98 even faster
// [FG] back to Vanilla code, we may not run through the entire column
column = (column_t *)((byte *)column + column->length + 4);
}
}
}
@ -457,7 +459,9 @@ void V_DrawPatchGeneral(int x, int y, int scrn, patch_t *patch,
dest += SCREENWIDTH;
}
while (--count);
column = (column_t *)(source+1); //killough 2/21/98 even faster
// column = (column_t *)(source+1); //killough 2/21/98 even faster
// [FG] back to Vanilla code, we may not run through the entire column
column = (column_t *)((byte *)column + column->length + 4);
}
}
}