From 0b7b415f194ee21d8511576260410c5ec43959b0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Oct 2017 20:11:19 +0200 Subject: [PATCH] fixed sidewall ordering yet again --- polygons.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/polygons.cpp b/polygons.cpp index c80fc31a..cad4aa06 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -539,6 +539,11 @@ void quickqueue() { for(int i=0; i 1) return -h[2]; + return -intval(h, C0); + } + void drawqueue() { int siz = size(ptds); @@ -581,8 +586,8 @@ void drawqueue() { PPR_LAKEWALL, PPR_INLAKEWALL, PPR_BELOWBOTTOM}) sort(&ptds2[qp0[p]], &ptds2[qp[p]], [] (polytodraw* p1, polytodraw* p2) { - return intval(p1->u.poly.V * xpush0(.1), C0) - < intval(p2->u.poly.V * xpush0(.1), C0); + return xintval(p1->u.poly.V * xpush0(.1)) + < xintval(p2->u.poly.V * xpush0(.1)); }); #endif