mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 08:50:55 +00:00
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:
parent
3975df6d2d
commit
0a59779460
1 changed files with 10 additions and 0 deletions
|
@ -9819,6 +9819,16 @@ killsprite:
|
||||||
spritesxyz[k] = spritesxyz[l];
|
spritesxyz[k] = spritesxyz[l];
|
||||||
spritesxyz[l] = tv3;
|
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;
|
i = j;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue