Fix software sprite drawing error from bad copy paste

This commit is contained in:
NepDisk 2025-07-03 10:54:56 -04:00
parent 894b1f05c9
commit feb4819b72

View file

@ -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<Type>(dc, dest, frac>>FRACBITS);
dest += vid.width;
*dest = R_DrawColumnPixel<Type>(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;