From f0c5d0733f005b97cf7e69055573ef49914df7e4 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Tue, 12 Jan 2021 09:24:11 +0100 Subject: [PATCH] choose next column like Vanilla, we may not run through the entire column --- Source/v_video.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/v_video.c b/Source/v_video.c index fb7865de..e4555b70 100644 --- a/Source/v_video.c +++ b/Source/v_video.c @@ -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); } } }