dont errronously clamp the sprites texturecolumn

we already take care of this in the lööp header
This commit is contained in:
Alug committed 2025-06-06 15:22:45 +02:00
1 parent 7d276e9b94
commit f2d48eb643
1 file changed
+3 -2
+3 -2
View File
@@ -921,10 +921,11 @@ static void R_DrawVisSprite(vissprite_t *vis)
// Non-paper drawing loop
for (dc.x = vis->x1; dc.x <= vis->x2 && (frac>>FRACBITS) < pwidth; dc.x++, frac += vis->xiscale)
{
texturecolumn = CLAMP(frac >> FRACBITS, 0, pwidth - 1);
//texturecolumn = CLAMP(frac >> FRACBITS, 0, pwidth - 1);
texturecolumn = (frac >> FRACBITS);
column = (column_t *)((UINT8 *)patch->columns + (patch->columnofs[texturecolumn]));
localcolfunc (&dc, column);
localcolfunc(&dc, column);
}
}