Sort tsprites by owner as a replacement for the sort by statnum removed by Helixhorned a while back. Seems sensible enough...

git-svn-id: https://svn.eduke32.com/eduke32@5394 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-10-20 07:15:25 +00:00
parent 3975df6d2d
commit 0a59779460

View file

@ -9819,6 +9819,16 @@ killsprite:
spritesxyz[k] = spritesxyz[l];
spritesxyz[l] = tv3;
}
for (int32_t k=i+1; k<j; k++)
for (int32_t l=i; l<k; l++)
if (tspriteptr[k]->owner < tspriteptr[l]->owner)
{
swapptr(&tspriteptr[k], &tspriteptr[l]);
vec3_t tv3 = spritesxyz[k];
spritesxyz[k] = spritesxyz[l];
spritesxyz[l] = tv3;
}
}
i = j;
}