]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
tiny progress indicator fix
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sun, 26 Apr 2009 19:38:05 +0000 (19:38 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sun, 26 Apr 2009 19:38:05 +0000 (19:38 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@337 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/common/threads.c

index ed218d6ee960d8992cf41f736fed3537f7cc4080..ae398324fbabde18e364ea072ca231073616c702 100644 (file)
@@ -60,12 +60,17 @@ int GetThreadWork (void)
        }
 
        f = 40*dispatch / workcount;
-       if (f != oldf)
+       if(f < oldf)
        {
+               Sys_Printf("warning: progress went backwards (should never happen)\n");
                oldf = f;
+       }
+       while(f > oldf)
+       {
+               ++oldf;
                if (pacifier)
                {
-                       if(f % 4 == 0)
+                       if(oldf % 4 == 0)
                                Sys_Printf("%i", f / 4);
                        else
                                Sys_Printf (".");