- fixed sprting of non-translucent sprites.

This commit is contained in:
Christoph Oelckers 2022-01-08 21:18:18 +01:00
parent fe0581ed97
commit 415dc5246d
9 changed files with 8 additions and 12 deletions

View file

@ -608,7 +608,7 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
auto A = *(DCoreActor**)a;
auto B = *(DCoreActor**)b;
if (A->spr.pos.Z != B->spr.pos.Z) return B->spr.pos.Z - A->spr.pos.Z;
return A->spr.time - B->spr.time; // ensures stable sort.
return A->time - B->time; // ensures stable sort.
});
vertices.Resize(4);