mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +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
54da9552de
commit
40e954779e
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)
|
||||
{
|
||||
fixed_t z1 = 0, z2 = 0;
|
||||
|
||||
if (rover->mobj->z - viewz > 0)
|
||||
{
|
||||
z1 = rover->pz;
|
||||
z2 = r2->sprite->pz;
|
||||
}
|
||||
// FIXME: calculate gz and gzt for splats properly and use that
|
||||
if (rover->mobj->z < viewz)
|
||||
infront = (r2->sprite->mobj->z >= rover->mobj->z);
|
||||
else
|
||||
{
|
||||
z1 = r2->sprite->pz;
|
||||
z2 = rover->pz;
|
||||
}
|
||||
|
||||
z1 -= viewz;
|
||||
z2 -= viewz;
|
||||
|
||||
infront = (z1 >= z2);
|
||||
infront = (r2->sprite->mobj->z <= rover->mobj->z);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue