- fixed a small logic error introduced by fixing the translucent particle sorting.

Due to an unintended swap of two values a few equal comparisons led to incorrect sorting.
This commit is contained in:
Christoph Oelckers 2018-03-01 17:10:21 +01:00
parent bcc8972356
commit bc25ad4136

View file

@ -402,7 +402,7 @@ void GLDrawList::SortSpriteIntoPlane(SortNode * head, SortNode * sort)
head->AddToLeft(sort);
head->AddToRight(sort2);
}
else if ((hiz < fh->z && !ceiling) || (loz > fh->z && ceiling)) // completely on the left side
else if ((ss->z2<fh->z && !ceiling) || (ss->z1>fh->z && ceiling)) // completely on the left side
{
head->AddToLeft(sort);
}