mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
do tx checking after tz clamping, not before
This commit is contained in:
parent
b1f804871f
commit
a2a6208548
1 changed files with 3 additions and 3 deletions
|
|
@ -1582,9 +1582,6 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
if (max(tz, tz2) < FixedMul(MINZ, this_scale)) // non-papersprite clipping is handled earlier
|
||||
return;
|
||||
|
||||
if (tx2 < -(tz2<<2) || tx > tz<<2) // too far off the side?
|
||||
return;
|
||||
|
||||
// Needs partially clipped
|
||||
if (tz < FixedMul(MINZ, this_scale))
|
||||
{
|
||||
|
|
@ -1603,6 +1600,9 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
xscale2 = FixedDiv(projection, tz2);
|
||||
}
|
||||
|
||||
if (tx2 < -(tz2<<2) || tx > tz<<2) // too far off the side?
|
||||
return;
|
||||
|
||||
// TODO: tx clamping
|
||||
|
||||
x1 = (centerxfrac + FixedMul(tx,xscale))>>FRACBITS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue