From feb4819b72b22048b80dd8e20935f2b7a9c3e115 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Thu, 3 Jul 2025 10:54:56 -0400 Subject: [PATCH] Fix software sprite drawing error from bad copy paste --- src/r_draw_column.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/r_draw_column.cpp b/src/r_draw_column.cpp index e070500cf..abd970e3c 100644 --- a/src/r_draw_column.cpp +++ b/src/r_draw_column.cpp @@ -234,12 +234,12 @@ static void R_DrawColumnTemplate(drawcolumndata_t *dc) // texture has no height, so just go while (--count > 0) { - INT32 n = frac >> FRACBITS; + *dest = R_DrawColumnPixel(dc, dest, frac>>FRACBITS); dest += vid.width; - *dest = R_DrawColumnPixel(dc, dest, n); + frac += fracstep; } } - else if (dc->texheight & heightmask) // not a power of 2 -- killough + else if (dc->sourcelength & heightmask) // not a power of 2 -- killough { heightmask = dc->texheight << FRACBITS;