mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Resolve one last conflict in splat sorting
Can't use gz/gzt because there is no transformation to make those work differently for splats.
This commit is contained in:
parent
d7e32e616d
commit
1a2c2c8471
1 changed files with 4 additions and 16 deletions
|
|
@ -2656,23 +2656,11 @@ static void R_CreateDrawNodes(maskcount_t* mask, drawnode_t* head, boolean temps
|
||||||
|
|
||||||
if (!behind)
|
if (!behind)
|
||||||
{
|
{
|
||||||
fixed_t z1 = 0, z2 = 0;
|
// FIXME: calculate gz and gzt for splats properly and use that
|
||||||
|
if (rover->mobj->z < viewz)
|
||||||
if (rover->mobj->z - viewz > 0)
|
infront = (r2->sprite->mobj->z >= rover->mobj->z);
|
||||||
{
|
|
||||||
z1 = rover->pz;
|
|
||||||
z2 = r2->sprite->pz;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
infront = (r2->sprite->mobj->z <= rover->mobj->z);
|
||||||
z1 = r2->sprite->pz;
|
|
||||||
z2 = rover->pz;
|
|
||||||
}
|
|
||||||
|
|
||||||
z1 -= viewz;
|
|
||||||
z2 -= viewz;
|
|
||||||
|
|
||||||
infront = (z1 >= z2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue