From bc25ad41365726b98a62522a2c321ee5730f285d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 1 Mar 2018 17:10:21 +0100 Subject: [PATCH] - 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. --- src/gl/scene/gl_drawinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_drawinfo.cpp b/src/gl/scene/gl_drawinfo.cpp index 2e2d5d1aa..c2d79b3ca 100644 --- a/src/gl/scene/gl_drawinfo.cpp +++ b/src/gl/scene/gl_drawinfo.cpp @@ -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->z2z && !ceiling) || (ss->z1>fh->z && ceiling)) // completely on the left side { head->AddToLeft(sort); }