mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix negative y offsets for both normal and y-flipped patches
This commit is contained in:
parent
410b55ebcd
commit
52a84cf309
1 changed files with 2 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ static inline void R_DrawColumnInCache(column_t *patch, UINT8 *cache, INT32 orig
|
||||||
if (position < 0)
|
if (position < 0)
|
||||||
{
|
{
|
||||||
count += position;
|
count += position;
|
||||||
|
source -= position; // start further down the column
|
||||||
position = 0;
|
position = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -193,6 +194,7 @@ static inline void R_DrawFlippedColumnInCache(column_t *patch, UINT8 *cache, INT
|
||||||
if (position < 0)
|
if (position < 0)
|
||||||
{
|
{
|
||||||
count += position;
|
count += position;
|
||||||
|
source += position; // start further UP the column
|
||||||
position = 0;
|
position = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue