Changeset - r8950:802e015b82fd
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-04-16 19:36:30
smatz@openttd.org
(svn r12738) -Fix (r12736): some sprites could be left unsorted
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -1337,10 +1337,13 @@ static void ViewportDrawTileSprites(cons
 

	
 
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;
 

	
0 comments (0 inline, 0 general)