equal
deleted
inserted
replaced
1331 ps->zmax < ps2->zmin) { |
1331 ps->zmax < ps2->zmin) { |
1332 continue; |
1332 continue; |
1333 } |
1333 } |
1334 } |
1334 } |
1335 |
1335 |
1336 /* Swap the two sprites ps and ps2 using bubble-sort algorithm. */ |
1336 /* Move ps2 in front of ps */ |
1337 ParentSpriteToDraw **psd3 = psd; |
1337 ParentSpriteToDraw *temp = ps2; |
1338 do { |
1338 for (ParentSpriteToDraw **psd3 = psd2; psd3 > psd; psd3--) { |
1339 ParentSpriteToDraw *temp = *psd3; |
1339 *psd3 = *(psd3 - 1); |
1340 *psd3 = ps2; |
1340 } |
1341 ps2 = temp; |
1341 *psd = temp; |
1342 |
|
1343 psd3++; |
|
1344 } while (psd3 <= psd2); |
|
1345 } |
1342 } |
1346 } |
1343 } |
1347 } |
1344 } |
1348 |
1345 |
1349 static void ViewportDrawParentSprites(const ParentSpriteToSortVector *psd, const ChildScreenSpriteToDrawVector *csstdv) |
1346 static void ViewportDrawParentSprites(const ParentSpriteToSortVector *psd, const ChildScreenSpriteToDrawVector *csstdv) |