mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Also fixed it for MD2s
This commit is contained in:
parent
ce793dfe28
commit
bcd05b1c63
1 changed files with 2 additions and 3 deletions
|
@ -4520,11 +4520,10 @@ static void HWR_SortVisSprites(void)
|
||||||
gr_vsprsortedhead.next = gr_vsprsortedhead.prev = &gr_vsprsortedhead;
|
gr_vsprsortedhead.next = gr_vsprsortedhead.prev = &gr_vsprsortedhead;
|
||||||
for (i = 0; i < gr_visspritecount; i++)
|
for (i = 0; i < gr_visspritecount; i++)
|
||||||
{
|
{
|
||||||
bestdist = ZCLIP_PLANE-1;
|
best = NULL;
|
||||||
bestdispoffset = INT32_MAX;
|
|
||||||
for (ds = unsorted.next; ds != &unsorted; ds = ds->next)
|
for (ds = unsorted.next; ds != &unsorted; ds = ds->next)
|
||||||
{
|
{
|
||||||
if (ds->tz > bestdist)
|
if (!best || ds->tz > bestdist)
|
||||||
{
|
{
|
||||||
bestdist = ds->tz;
|
bestdist = ds->tz;
|
||||||
bestdispoffset = ds->dispoffset;
|
bestdispoffset = ds->dispoffset;
|
||||||
|
|
Loading…
Reference in a new issue