mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00: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[])
|
||||
{
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user