modulo maths lel

This commit is contained in:
Alug committed 2025-07-11 16:42:42 +02:00
1 parent 5b8b6efed5
commit dfd02fdeb3
1 file changed
+1 -3
+1 -3
View File
@@ -485,9 +485,7 @@ UINT8 *R_GetColumn(fixed_t tex, INT32 col)
// Odd width texture, cannot just mask.
// Sometime gets colnum = -1 or = width, even without tiling.
// Test LostCiv, Map 20, crates.
col = ( col < 0 ) ?
texwidth - (((-col - 1) % texwidth) + 1)
: col % texwidth;
col = ((col % texwidth) + texwidth) % texwidth;
}
if (!data)