use it for other stuff

This commit is contained in:
Alug committed 2024-03-09 07:02:16 +01:00
1 parent aa70635919
commit 482b6e6844
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -651,7 +651,7 @@ void R_SortPolyObjects(subsector_t *sub)
// 03/10/06: only bother if there are actually polys to sort
if (numpolys >= 2)
{
qsort(po_ptrs, numpolys, sizeof(polyobj_t *),
qs22j(po_ptrs, numpolys, sizeof(polyobj_t *),
R_PolyobjCompare);
}
}
@@ -754,7 +754,7 @@ static void R_AddPolyObjects(subsector_t *sub)
// render polyobjects
for (i = 0; i < numpolys; ++i)
{
qsort(po_ptrs[i]->segs, po_ptrs[i]->segCount, sizeof(seg_t *), R_PolysegCompare);
qs22j(po_ptrs[i]->segs, po_ptrs[i]->segCount, sizeof(seg_t *), R_PolysegCompare);
for (j = 0; j < po_ptrs[i]->segCount; ++j)
R_AddLine(po_ptrs[i]->segs[j]);
}
+1 -1
View File
@@ -3302,7 +3302,7 @@ static int skinSortFunc(const void *a, const void *b) //tbh i have no clue what
void sortSkinGrid(void)
{
CONS_Printf("Sorting skin list (%d)...\n", cv_skinselectgridsort.value);
qsort(skinsorted, numskins, sizeof(UINT8), skinSortFunc);
qs22j(skinsorted, numskins, sizeof(UINT8), skinSortFunc);
}
//