(svn r12738) -Fix (r12736): some sprites could be left unsorted

This commit is contained in:
smatz 2008-04-16 19:36:30 +00:00
parent 7957bdde13
commit 1f22f47b3b

View File

@ -1337,10 +1337,13 @@ static void ViewportDrawTileSprites(const TileSpriteToDrawVector *tstdv)
static void ViewportSortParentSprites(ParentSpriteToDraw *psd[])
{
for (; *psd != NULL; psd++) {
while (*psd != NULL) {
ParentSpriteToDraw *ps = *psd;
if (ps->comparison_done) continue;
if (ps->comparison_done) {
psd++;
continue;
}
ps->comparison_done = true;