mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix translucency comparison from previous commit
This commit is contained in:
parent
3b46ffb422
commit
107391f81c
1 changed files with 4 additions and 4 deletions
|
|
@ -4273,7 +4273,7 @@ static int CompareVisSprites(const void *p1, const void *p2)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tz1 = spr1->tz;
|
tz1 = spr1->tz;
|
||||||
transparency1 = !spr1->precip && ((spr1->mobj->flags2 & MF2_SHADOW) || (spr1->mobj->frame & FF_TRANSMASK));
|
transparency1 = (!spr1->precip && (spr1->mobj->flags2 & MF2_SHADOW)) || (spr1->mobj->frame & FF_TRANSMASK);
|
||||||
}
|
}
|
||||||
if (linkdraw2)
|
if (linkdraw2)
|
||||||
{
|
{
|
||||||
|
|
@ -4283,15 +4283,15 @@ static int CompareVisSprites(const void *p1, const void *p2)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tz2 = spr2->tz;
|
tz2 = spr2->tz;
|
||||||
transparency2 = !spr2->precip && ((spr2->mobj->flags2 & MF2_SHADOW) || (spr2->mobj->frame & FF_TRANSMASK));
|
transparency2 = (!spr2->precip && (spr2->mobj->flags2 & MF2_SHADOW)) || (spr2->mobj->frame & FF_TRANSMASK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tz1 = spr1->tz;
|
tz1 = spr1->tz;
|
||||||
transparency1 = !spr1->precip && ((spr1->mobj->flags2 & MF2_SHADOW) || (spr1->mobj->frame & FF_TRANSMASK));
|
transparency1 = (!spr1->precip && (spr1->mobj->flags2 & MF2_SHADOW)) || (spr1->mobj->frame & FF_TRANSMASK);
|
||||||
tz2 = spr2->tz;
|
tz2 = spr2->tz;
|
||||||
transparency2 = !spr2->precip && ((spr2->mobj->flags2 & MF2_SHADOW) || (spr2->mobj->frame & FF_TRANSMASK));
|
transparency2 = (!spr2->precip && (spr2->mobj->flags2 & MF2_SHADOW)) || (spr2->mobj->frame & FF_TRANSMASK);
|
||||||
}
|
}
|
||||||
|
|
||||||
// first compare transparency flags, then compare tz, then compare dispoffset
|
// first compare transparency flags, then compare tz, then compare dispoffset
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue