use it for other stuff
This commit is contained in:
1 parent
aa70635919
commit
482b6e6844
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user