mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'renderhitbox-fix' into 'next'
Small renderhitbox fix See merge request STJr/SRB2!2068
This commit is contained in:
commit
8ed51989e1
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue