fix early return in comparePolygons

thx durr very cool!
This commit is contained in:
Alug committed 2024-11-26 15:06:16 +01:00
1 parent 2a3dfbde83
commit 56c91eba23
1 file changed
+1 -1
+1 -1
View File
@@ -180,9 +180,9 @@ static int comparePolygons(const void *p1, const void *p2)
diff = poly1->surf.LightInfo.fade_start - poly2->surf.LightInfo.fade_start;
if (diff != 0) return diff;
diff = poly1->surf.LightInfo.fade_end - poly2->surf.LightInfo.fade_end;
if (diff != 0) return diff;
diff = poly1->surf.LightInfo.directional - poly2->surf.LightInfo.directional;
if (diff != 0) return diff;
return diff;
}