Merge branch 'renderhitbox-fix' into 'next'

Small renderhitbox fix

See merge request STJr/SRB2!2068
This commit is contained in:
Sal 2023-07-26 12:00:22 +00:00
commit 8ed51989e1

View file

@ -129,9 +129,6 @@ draw_bbox_row
x1 = a->x; x1 = a->x;
x2 = b->x; x2 = b->x;
if (x2 >= viewwidth)
x2 = viewwidth - 1;
if (x1 == x2 || x1 >= viewwidth || x2 < 0) if (x1 == x2 || x1 >= viewwidth || x2 < 0)
return; return;
@ -159,6 +156,9 @@ draw_bbox_row
x1 = 0; x1 = 0;
} }
if (x2 >= viewwidth)
x2 = viewwidth - 1;
while (x1 < x2) while (x1 < x2)
{ {
raster_bbox_seg(x1, y1, s1, bb->color); raster_bbox_seg(x1, y1, s1, bb->color);