mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-10 14:24:02 +01:00
(svn r12738) -Fix (r12736): some sprites could be left unsorted
This commit is contained in:
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
Block a user