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;