mirror of https://github.com/OpenTTD/OpenTTD
(svn r12738) -Fix (r12736): some sprites could be left unsorted
parent
7957bdde13
commit
1f22f47b3b
|
@ -1337,10 +1337,13 @@ static void ViewportDrawTileSprites(const TileSpriteToDrawVector *tstdv)
|
||||||
|
|
||||||
static void ViewportSortParentSprites(ParentSpriteToDraw *psd[])
|
static void ViewportSortParentSprites(ParentSpriteToDraw *psd[])
|
||||||
{
|
{
|
||||||
for (; *psd != NULL; psd++) {
|
while (*psd != NULL) {
|
||||||
ParentSpriteToDraw *ps = *psd;
|
ParentSpriteToDraw *ps = *psd;
|
||||||
|
|
||||||
if (ps->comparison_done) continue;
|
if (ps->comparison_done) {
|
||||||
|
psd++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ps->comparison_done = true;
|
ps->comparison_done = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue