From f2d2307fcc38469485817329d4f85290960f50fc Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 4 Apr 2025 08:15:44 +0200 Subject: [PATCH] didnt mean to change that lel --- src/r_draw8.c | 10 +++++----- src/r_things.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/r_draw8.c b/src/r_draw8.c index 1a6e45a5a..36dc15576 100644 --- a/src/r_draw8.c +++ b/src/r_draw8.c @@ -62,7 +62,7 @@ void R_DrawColumn_8(void) register INT32 heightmask = dc_sourcelength-1; npow2min = -1; - npow2max = dc_sourcelength-1; + npow2max = dc_sourcelength; if (dc_sourcelength & heightmask) // not a power of 2 -- killough { @@ -183,7 +183,7 @@ void R_Draw2sMultiPatchColumn_8(void) register INT32 heightmask = dc_sourcelength-1; register UINT8 val; npow2min = -1; - npow2max = dc_sourcelength-1; + npow2max = dc_sourcelength; if (dc_sourcelength & heightmask) // not a power of 2 -- killough { @@ -322,7 +322,7 @@ void R_Draw2sMultiPatchTranslucentColumn_8(void) register INT32 heightmask = dc_sourcelength-1; register UINT8 val; npow2min = -1; - npow2max = dc_sourcelength-1; + npow2max = dc_sourcelength; if (dc_sourcelength & heightmask) // not a power of 2 -- killough { @@ -501,7 +501,7 @@ void R_DrawTranslucentColumn_8(void) register const lighttable_t *colormap = dc_colormap; register INT32 heightmask = dc_sourcelength-1; npow2min = -1; - npow2max = dc_sourcelength-1; + npow2max = dc_sourcelength; if (dc_sourcelength & heightmask) { @@ -607,7 +607,7 @@ void R_DrawTranslatedTranslucentColumn_8(void) // This is as fast as it gets. register INT32 heightmask = dc_sourcelength-1; npow2min = -1; - npow2max = dc_sourcelength-1; + npow2max = dc_sourcelength; if (dc_sourcelength & heightmask) { diff --git a/src/r_things.c b/src/r_things.c index 2600ee72e..881f5c2ed 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -695,7 +695,7 @@ static void R_DrawFlippedMaskedColumn(column_t *column) if (dc_yl <= dc_yh && dc_yh > 0 && column->length != 0) { dc_source = ZZ_Alloc(column->length); - dc_sourcelength = dc_texheight = column->length; + dc_sourcelength = column->length; for (s = (UINT8 *)column+2+column->length, d = dc_source; d < dc_source+column->length; --s) *d++ = *s;