mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-19 18:41:28 +00:00
Also fixed it for MD2s
This commit is contained in:
parent
c460892a4a
commit
262042ac9f
1 changed files with 2 additions and 2 deletions
|
@ -4519,10 +4519,10 @@ static void HWR_SortVisSprites(void)
|
|||
gr_vsprsortedhead.next = gr_vsprsortedhead.prev = &gr_vsprsortedhead;
|
||||
for (i = 0; i < gr_visspritecount; i++)
|
||||
{
|
||||
bestdist = ZCLIP_PLANE-1;
|
||||
best = NULL;
|
||||
for (ds = unsorted.next; ds != &unsorted; ds = ds->next)
|
||||
{
|
||||
if (ds->tz > bestdist)
|
||||
if (!best || ds->tz > bestdist)
|
||||
{
|
||||
bestdist = ds->tz;
|
||||
best = ds;
|
||||
|
|
Loading…
Reference in a new issue