modulo maths lel
This commit is contained in:
1 parent
5b8b6efed5
commit
dfd02fdeb3
1 file changed
+1
-3
+1
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user