From 482b6e6844be43769cd26eb24011bd658f62ddd3 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 9 Mar 2024 07:02:16 +0100 Subject: [PATCH] use it for other stuff --- src/r_bsp.c | 4 ++-- src/r_things.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/r_bsp.c b/src/r_bsp.c index 8cb7f8760..08cb1a9f5 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -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]); } diff --git a/src/r_things.c b/src/r_things.c index 12bfd914b..a565231fb 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -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); } //