mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix off-by-one when clipping rectangle bottom
This commit is contained in:
parent
8cdfcea319
commit
09c55858b7
1 changed files with 2 additions and 2 deletions
|
|
@ -940,7 +940,7 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
|
|||
continue;
|
||||
}
|
||||
|
||||
if (cy > clip->bottom) // don't draw off the bottom of the clip rect
|
||||
if (cy >= clip->bottom) // don't draw off the bottom of the clip rect
|
||||
{
|
||||
dest += vid.width;
|
||||
continue;
|
||||
|
|
@ -967,7 +967,7 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
|
|||
continue;
|
||||
}
|
||||
|
||||
if (cy > clip->bottom) // don't draw off the bottom of the clip rect
|
||||
if (cy >= clip->bottom) // don't draw off the bottom of the clip rect
|
||||
{
|
||||
dest += vid.width;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue