(hopefully) fix horizonlines

This commit is contained in:
Alug committed 2024-01-02 03:49:32 +01:00
1 parent d757e82e3f
commit 73d0848f7e
1 file changed
+1 -1
+1 -1
View File
@@ -2412,7 +2412,7 @@ EXPORT void HWRAPI(DrawPolygon) (FSurfaceInfo *pSurf, FOutVector *pOutVerts, FUI
polygonArray[polygonArraySize].horizonSpecial = horizonSpecial;
// default to polygonArraySize so we don't lose order on horizon lines
// (yes, it's supposed to be negative, since we're sorting in that direction)
polygonArray[polygonArraySize].hash = -polygonArraySize;
polygonArray[polygonArraySize].hash = polygonArraySize;
polygonArraySize++;
if (!(PolyFlags & PF_NoTexture) && !horizonSpecial)