Fix alignment in R_ThickStepping

This commit is contained in:
Jaime Passos 2019-12-30 12:02:09 -03:00
parent 590d6729e6
commit a04834d1aa
1 changed files with 2 additions and 2 deletions

View File

@ -3287,8 +3287,8 @@ static void R_ThickStepping(drawseg_t *ds, INT32 range)
// using INT64 to avoid 32bit overflow
rw.top_frac = (INT64)centeryfrac - (((INT64)rw.left_top * ds->scale1) >> FRACBITS);
rw.bottom_frac = (INT64)centeryfrac - (((INT64)rw.left_bottom * ds->scale1) >> FRACBITS);
rw.top_step = (INT64)centeryfrac - (((INT64)right_top * ds->scale2) >> FRACBITS);
rw.bottom_step = (INT64)centeryfrac - (((INT64)right_bottom * ds->scale2) >> FRACBITS);
rw.top_step = (INT64)centeryfrac - (((INT64)right_top * ds->scale2) >> FRACBITS);
rw.bottom_step = (INT64)centeryfrac - (((INT64)right_bottom * ds->scale2) >> FRACBITS);
rw.top_step = (rw.top_step-rw.top_frac)/(range);
rw.bottom_step = (rw.bottom_step-rw.bottom_frac)/(range);